VirtualBox

Changeset 35439 in vbox for trunk/src/VBox/Debugger


Ignore:
Timestamp:
Jan 9, 2011 11:39:53 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
69310
Message:

DBGCOps.cpp: Added register op (@) stub.

File:
1 edited

Legend:

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

    r35346 r35439  
    5353static DECLCALLBACK(int) dbgcOpBitwiseNot(PDBGC pDbgc, PCDBGCVAR pArg, PDBGCVAR pResult);
    5454static DECLCALLBACK(int) dbgcOpVar(PDBGC pDbgc, PCDBGCVAR pArg, PDBGCVAR pResult);
     55static DECLCALLBACK(int) dbgcOpRegister(PDBGC pDbgc, PCDBGCVAR pArg, PDBGCVAR pResult);
    5556
    5657static DECLCALLBACK(int) dbgcOpAddrFar(PDBGC pDbgc, PCDBGCVAR pArg1, PCDBGCVAR pArg2, PDBGCVAR pResult);
     
    180181    { {'#','%','%'},    3,       false,      3,              dbgcOpAddrHostPhys, NULL,                       "Physical host address." },
    181182    { {'$'},            1,       false,      3,              dbgcOpVar,          NULL,                       "Reference a variable." },
     183    { {'@'},            1,       false,      3,              dbgcOpRegister,     NULL,                       "Reference a register." },
    182184    { {'*'},            1,       true,       10,             NULL,               dbgcOpMult,                 "Multiplication." },
    183185    { {'/'},            1,       true,       11,             NULL,               dbgcOpDiv,                  "Division." },
     
    466468
    467469    return VERR_PARSE_VARIABLE_NOT_FOUND;
     470}
     471
     472
     473/**
     474 * Reference register (unary).
     475 *
     476 * @returns VINF_SUCCESS on success.
     477 * @returns VBox evaluation / parsing error code on failure.
     478 *          The caller does the bitching.
     479 * @param   pDbgc       Debugger console instance data.
     480 * @param   pArg        The argument.
     481 * @param   pResult     Where to store the result.
     482 */
     483static DECLCALLBACK(int) dbgcOpRegister(PDBGC pDbgc, PCDBGCVAR pArg, PDBGCVAR pResult)
     484{
     485    LogFlow(("dbgcOpRegister: %s\n", pArg->u.pszString));
     486
     487    /*
     488     * Parse sanity.
     489     */
     490    if (pArg->enmType != DBGCVAR_TYPE_STRING)
     491        return VERR_PARSE_INCORRECT_ARG_TYPE;
     492
     493    /*
     494     * Get the register.
     495     */
     496    /// @todo DBGFR3RegByName();
     497    return VERR_NOT_IMPLEMENTED;
     498
    468499}
    469500
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