VirtualBox

Ignore:
Timestamp:
Jun 4, 2012 2:07:38 PM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
78342
Message:

DBGC: Implemented the functions by(addr), dwo(addr), not(value/addr), poi(addr), qwo(addr), and wo(addr). (untested)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Debugger/DBGCCmdHlp.cpp

    r41558 r41565  
    12721272
    12731273/**
     1274 * @interface_method_impl{DBGCCMDHLP,pfnGetCurrentCpu}
     1275 */
     1276static DECLCALLBACK(VMCPUID) dbgcHlpGetCurrentCpu(PDBGCCMDHLP pCmdHlp)
     1277{
     1278    PDBGC pDbgc = DBGC_CMDHLP2DBGC(pCmdHlp);
     1279    return pDbgc->idCpu;
     1280}
     1281
     1282
     1283/**
     1284 * @interface_method_impl{DBGCCMDHLP,pfnGetCpuMode}
     1285 */
     1286static DECLCALLBACK(CPUMMODE) dbgcHlpGetCpuMode(PDBGCCMDHLP pCmdHlp)
     1287{
     1288    PDBGC    pDbgc   = DBGC_CMDHLP2DBGC(pCmdHlp);
     1289    CPUMMODE enmMode = CPUMMODE_INVALID;
     1290    if (pDbgc->fRegCtxGuest)
     1291    {
     1292        if (pDbgc->pVM)
     1293            enmMode = DBGFR3CpuGetMode(pDbgc->pVM, DBGCCmdHlpGetCurrentCpu(pCmdHlp));
     1294        if (enmMode == CPUMMODE_INVALID)
     1295#if HC_ARCH_BITS == 64
     1296            enmMode = CPUMMODE_LONG;
     1297#else
     1298            enmMode = CPUMMODE_PROTECTED;
     1299#endif
     1300    }
     1301    else
     1302        enmMode = CPUMMODE_PROTECTED;
     1303    return enmMode;
     1304}
     1305
     1306
     1307/**
    12741308 * Initializes the Command Helpers for a DBGC instance.
    12751309 *
     
    12981332    pDbgc->CmdHlp.pfnVarConvert         = dbgcHlpVarConvert;
    12991333    pDbgc->CmdHlp.pfnGetDbgfOutputHlp   = dbgcHlpGetDbgfOutputHlp;
     1334    pDbgc->CmdHlp.pfnGetCurrentCpu      = dbgcHlpGetCurrentCpu;
     1335    pDbgc->CmdHlp.pfnGetCpuMode         = dbgcHlpGetCpuMode;
    13001336    pDbgc->CmdHlp.u32EndMarker          = DBGCCMDHLP_MAGIC;
    13011337}
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