Changeset 18927 in vbox for trunk/src/VBox/VMM/DBGFBp.cpp
- Timestamp:
- Apr 16, 2009 11:41:38 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/DBGFBp.cpp
r13818 r18927 379 379 { 380 380 /** @todo should actually use physical address here! */ 381 382 /* @todo SMP support! */ 383 PVMCPU pVCpu = &pVM->aCpus[0]; 384 381 385 /* 382 386 * Save current byte and write int3 instruction. 383 387 */ 384 int rc = MMR3ReadGCVirt(pVM, &pBp->u.Int3.bOrg, pBp->GCPtr, 1);388 int rc = DBGFR3ReadGCVirt(pVM, pVCpu, &pBp->u.Int3.bOrg, pBp->GCPtr, 1); 385 389 if (RT_SUCCESS(rc)) 386 390 { 387 391 static const uint8_t s_bInt3 = 0xcc; 388 rc = MMR3WriteGCVirt(pVM,pBp->GCPtr, &s_bInt3, 1);392 rc = DBGFR3WriteGCVirt(pVM, pVCpu, pBp->GCPtr, &s_bInt3, 1); 389 393 } 390 394 return rc; … … 402 406 static int dbgfR3BpInt3Disarm(PVM pVM, PDBGFBP pBp) 403 407 { 408 /* @todo SMP support! */ 409 PVMCPU pVCpu = &pVM->aCpus[0]; 410 404 411 /* 405 412 * Check that the current byte is the int3 instruction, and restore the original one. … … 407 414 */ 408 415 uint8_t bCurrent; 409 int rc = MMR3ReadGCVirt(pVM, &bCurrent, pBp->GCPtr, 1);416 int rc = DBGFR3ReadGCVirt(pVM, pVCpu, &bCurrent, pBp->GCPtr, 1); 410 417 if (bCurrent == 0xcc) 411 rc = MMR3WriteGCVirt(pVM,pBp->GCPtr, &pBp->u.Int3.bOrg, 1);418 rc = DBGFR3WriteGCVirt(pVM, pVCpu, pBp->GCPtr, &pBp->u.Int3.bOrg, 1); 412 419 return rc; 413 420 } … … 563 570 static int dbgfR3BpRegArm(PVM pVM, PDBGFBP pBp) 564 571 { 572 /* @todo SMP support! */ 573 PVMCPU pVCpu = &pVM->aCpus[0]; 574 565 575 Assert(pBp->fEnabled); 566 return CPUMRecalcHyperDRx(pV M);576 return CPUMRecalcHyperDRx(pVCpu); 567 577 } 568 578 … … 578 588 static int dbgfR3BpRegDisarm(PVM pVM, PDBGFBP pBp) 579 589 { 590 /* @todo SMP support! */ 591 PVMCPU pVCpu = &pVM->aCpus[0]; 592 580 593 Assert(!pBp->fEnabled); 581 return CPUMRecalcHyperDRx(pV M);594 return CPUMRecalcHyperDRx(pVCpu); 582 595 } 583 596
Note:
See TracChangeset
for help on using the changeset viewer.