Changeset 1358 in vbox for trunk/src/VBox/Debugger
- Timestamp:
- Mar 9, 2007 10:40:11 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Debugger/DBGConsole.cpp
r836 r1358 4321 4321 int rc; 4322 4322 *pResult = *pArg; 4323 4323 4324 switch (pArg->enmType) 4324 4325 { … … 4327 4328 4328 4329 case DBGCVAR_TYPE_GC_FAR: 4330 { 4331 PCPUMCTX pCtx; 4332 CPUMQueryGuestCtxPtr(pDbgc->pVM, &pCtx); 4333 4329 4334 Assert(pDbgc->pVM); 4335 4330 4336 pResult->enmType = DBGCVAR_TYPE_GC_FLAT; 4331 rc = SELMToFlatEx(pDbgc->pVM, p Result->u.GCFar.sel, pResult->u.GCFar.off,4337 rc = SELMToFlatEx(pDbgc->pVM, pCtx->eflags, pResult->u.GCFar.sel, pResult->u.GCFar.off, 4332 4338 SELMTOFLAT_FLAGS_NO_PL | SELMTOFLAT_FLAGS_HYPER, &pResult->u.GCFlat, NULL); 4333 4339 if (VBOX_SUCCESS(rc)) 4334 4340 return 0; 4335 4341 return VERR_PARSE_CONVERSION_FAILED; 4342 } 4336 4343 4337 4344 case DBGCVAR_TYPE_GC_PHYS: … … 4396 4403 4397 4404 case DBGCVAR_TYPE_GC_FAR: 4405 { 4406 PCPUMCTX pCtx; 4407 CPUMQueryGuestCtxPtr(pDbgc->pVM, &pCtx); 4398 4408 Assert(pDbgc->pVM); 4399 rc = SELMToFlatEx(pDbgc->pVM, p Result->u.GCFar.sel, pResult->u.GCFar.off,4409 rc = SELMToFlatEx(pDbgc->pVM, pCtx->eflags, pResult->u.GCFar.sel, pResult->u.GCFar.off, 4400 4410 SELMTOFLAT_FLAGS_NO_PL | SELMTOFLAT_FLAGS_HYPER, &pResult->u.GCFlat, NULL); 4401 4411 if (VBOX_SUCCESS(rc)) … … 4408 4418 } 4409 4419 return VERR_PARSE_CONVERSION_FAILED; 4420 } 4410 4421 4411 4422 case DBGCVAR_TYPE_GC_PHYS: … … 4471 4482 4472 4483 case DBGCVAR_TYPE_GC_FAR: 4484 { 4485 PCPUMCTX pCtx; 4486 CPUMQueryGuestCtxPtr(pDbgc->pVM, &pCtx); 4487 4473 4488 Assert(pDbgc->pVM); 4474 rc = SELMToFlatEx(pDbgc->pVM, p Result->u.GCFar.sel, pResult->u.GCFar.off,4489 rc = SELMToFlatEx(pDbgc->pVM, pCtx->eflags, pResult->u.GCFar.sel, pResult->u.GCFar.off, 4475 4490 SELMTOFLAT_FLAGS_NO_PL | SELMTOFLAT_FLAGS_HYPER, &pResult->u.GCFlat, NULL); 4476 4491 if (VBOX_SUCCESS(rc)) … … 4483 4498 } 4484 4499 return VERR_PARSE_CONVERSION_FAILED; 4500 } 4485 4501 4486 4502 case DBGCVAR_TYPE_GC_PHYS: … … 4551 4567 4552 4568 case DBGCVAR_TYPE_GC_FAR: 4569 { 4570 PCPUMCTX pCtx; 4571 CPUMQueryGuestCtxPtr(pDbgc->pVM, &pCtx); 4572 4553 4573 Assert(pDbgc->pVM); 4554 rc = SELMToFlatEx(pDbgc->pVM, p Result->u.GCFar.sel, pResult->u.GCFar.off,4574 rc = SELMToFlatEx(pDbgc->pVM, pCtx->eflags, pResult->u.GCFar.sel, pResult->u.GCFar.off, 4555 4575 SELMTOFLAT_FLAGS_NO_PL | SELMTOFLAT_FLAGS_HYPER, &pResult->u.GCFlat, NULL); 4556 4576 if (VBOX_SUCCESS(rc)) … … 4563 4583 } 4564 4584 return VERR_PARSE_CONVERSION_FAILED; 4585 } 4565 4586 4566 4587 case DBGCVAR_TYPE_GC_PHYS: … … 5755 5776 { 5756 5777 uint32_t cb; 5778 PCPUMCTX pCtx; 5779 CPUMQueryGuestCtxPtr(pDbgc->pVM, &pCtx); 5780 5757 5781 Var.enmType = DBGCVAR_TYPE_GC_FLAT; 5758 int rc = SELMToFlatEx(pDbgc->pVM, Var.u.GCFar.sel, Var.u.GCFar.off,5782 int rc = SELMToFlatEx(pDbgc->pVM, pCtx->eflags, Var.u.GCFar.sel, Var.u.GCFar.off, 5759 5783 SELMTOFLAT_FLAGS_NO_PL | SELMTOFLAT_FLAGS_HYPER, &Var.u.GCFlat, &cb); 5760 5784 if (VBOX_FAILURE(rc))
Note:
See TracChangeset
for help on using the changeset viewer.