VirtualBox

Ignore:
Timestamp:
Jan 24, 2011 5:35:59 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
69620
Message:

Debugger console: more cleanup.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/recompiler/VBoxRecompiler.c

    r35346 r35694  
    36693669static DECLCALLBACK(int) remR3CmdDisasEnableStepping(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PVM pVM, PCDBGCVAR paArgs, unsigned cArgs, PDBGCVAR pResult)
    36703670{
    3671     bool fEnable;
    36723671    int rc;
    36733672
    3674     /* print status */
    36753673    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    }
    36863697    return rc;
    36873698}
    3688 #endif
     3699#endif /* VBOX_WITH_DEBUGGER && !win.amd64 */
    36893700
    36903701
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette