Changeset 35694 in vbox for trunk/src/recompiler/VBoxRecompiler.c
- Timestamp:
- Jan 24, 2011 5:35:59 PM (14 years ago)
- svn:sync-xref-src-repo-rev:
- 69620
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/recompiler/VBoxRecompiler.c
r35346 r35694 3669 3669 static DECLCALLBACK(int) remR3CmdDisasEnableStepping(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PVM pVM, PCDBGCVAR paArgs, unsigned cArgs, PDBGCVAR pResult) 3670 3670 { 3671 bool fEnable;3672 3671 int rc; 3673 3672 3674 /* print status */3675 3673 if (cArgs == 0) 3676 return pCmdHlp->pfnPrintf(pCmdHlp, NULL, "DisasStepping is %s\n", 3677 pVM->rem.s.Env.state & CPU_EMULATE_SINGLE_STEP ? "enabled" : "disabled"); 3678 3679 /* convert the argument and change the mode. */ 3680 rc = pCmdHlp->pfnVarToBool(pCmdHlp, &paArgs[0], &fEnable); 3681 if (RT_FAILURE(rc)) 3682 return pCmdHlp->pfnVBoxError(pCmdHlp, rc, "boolean conversion failed!\n"); 3683 rc = REMR3DisasEnableStepping(pVM, fEnable); 3684 if (RT_FAILURE(rc)) 3685 return pCmdHlp->pfnVBoxError(pCmdHlp, rc, "REMR3DisasEnableStepping failed!\n"); 3674 /* 3675 * Print the current status. 3676 */ 3677 rc = DBGCCmdHlpPrintf(pCmdHlp, "DisasStepping is %s\n", 3678 pVM->rem.s.Env.state & CPU_EMULATE_SINGLE_STEP ? "enabled" : "disabled"); 3679 else 3680 { 3681 /* 3682 * Convert the argument and change the mode. 3683 */ 3684 bool fEnable; 3685 rc = DBGCCmdHlpVarToBool(pCmdHlp, &paArgs[0], &fEnable); 3686 if (RT_SUCCESS(rc)) 3687 { 3688 rc = REMR3DisasEnableStepping(pVM, fEnable); 3689 if (RT_SUCCESS(rc)) 3690 rc = DBGCCmdHlpPrintf(pCmdHlp, "DisasStepping was %s\n", fEnable ? "enabled" : "disabled"); 3691 else 3692 rc = DBGCCmdHlpFailRc(pCmdHlp, pCmd, rc, "REMR3DisasEnableStepping"); 3693 } 3694 else 3695 rc = DBGCCmdHlpFailRc(pCmdHlp, pCmd, rc, "DBGCCmdHlpVarToBool"); 3696 } 3686 3697 return rc; 3687 3698 } 3688 #endif 3699 #endif /* VBOX_WITH_DEBUGGER && !win.amd64 */ 3689 3700 3690 3701
Note:
See TracChangeset
for help on using the changeset viewer.