VirtualBox

Changeset 41572 in vbox


Ignore:
Timestamp:
Jun 4, 2012 8:08:54 PM (13 years ago)
Author:
vboxsync
Message:

A fix and docs.

Location:
trunk/src/VBox/Debugger
Files:
2 edited

Legend:

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

    r41571 r41572  
    399399
    400400
     401/**
     402 * Handles a call.
     403 *
     404 * @returns VBox status code. pResult contains the result on success.
     405 * @param   pDbgc               The DBGC instance.
     406 * @param   pszFuncNm           The function name.
     407 * @param   cchFuncNm           The length of the function name.
     408 * @param   fExternal           Whether it's an external name.
     409 * @param   pszArgs             The start of the arguments (after parenthesis).
     410 * @param   cchArgs             The length for the argument (exclusing
     411 *                              parentesis).
     412 * @param   enmCategory         The desired category of the result (ignored).
     413 * @param   pResult             The result.
     414 */
    401415static int dbgcEvalSubCall(PDBGC pDbgc, char *pszFuncNm, size_t cchFuncNm, bool fExternal, char *pszArgs, size_t cchArgs,
    402416                           DBGCVARCAT enmCategory, PDBGCVAR pResult)
     
    540554
    541555    AssertMsgFailed(("enmCategory=%d\n", enmCategory));
    542     rc = VERR_NOT_IMPLEMENTED;
    543 
    544     return rc;
     556    return VERR_NOT_IMPLEMENTED;
    545557}
    546558
  • trunk/src/VBox/Debugger/DBGConsole.cpp

    r41571 r41572  
    365365         * Parse and execute this command.
    366366         */
    367         pDbgc->pszScratch = psz;
     367        pDbgc->pszScratch = pszTrg + 1;
    368368        pDbgc->iArg       = 0;
    369         rc = dbgcEvalCommand(pDbgc, &pDbgc->achScratch[0], psz - &pDbgc->achScratch[0] - 1, fNoExecute);
     369        rc = dbgcEvalCommand(pDbgc, &pDbgc->achScratch[0], pszTrg - &pDbgc->achScratch[0] - 1, fNoExecute);
    370370        if (   rc == VERR_DBGC_QUIT
    371371            || rc == VWRN_DBGC_CMD_PENDING)
Note: See TracChangeset for help on using the changeset viewer.

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