VirtualBox

Ignore:
Timestamp:
Jun 3, 2012 10:46:46 PM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
78326
Message:

DBGC: Hacking the command parsing code.

File:
1 edited

Legend:

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

    r41553 r41558  
    5151    return rc;
    5252}
     53
    5354
    5455/**
     
    211212
    212213    return pDbgc->rcOutput;
     214}
     215
     216
     217/**
     218 * @interface_method_impl{DBGCCMDHLP,pfnStrPrintf}
     219 */
     220static DECLCALLBACK(size_t) dbgcHlpStrPrintfV(PDBGCCMDHLP pCmdHlp, char *pszBuf, size_t cbBuf,
     221                                              const char *pszFormat, va_list va)
     222{
     223    PDBGC   pDbgc = DBGC_CMDHLP2DBGC(pCmdHlp);
     224    return RTStrPrintfExV(dbgcStringFormatter, pDbgc, pszBuf, cbBuf, pszFormat, va);
     225}
     226
     227
     228/**
     229 * @interface_method_impl{DBGCCMDHLP,pfnStrPrintf}
     230 */
     231static DECLCALLBACK(size_t) dbgcHlpStrPrintf(PDBGCCMDHLP pCmdHlp, char *pszBuf, size_t cbBuf, const char *pszFormat, ...)
     232{
     233    PDBGC   pDbgc = DBGC_CMDHLP2DBGC(pCmdHlp);
     234    va_list va;
     235    va_start(va, pszFormat);
     236    size_t cch = RTStrPrintfExV(dbgcStringFormatter, pDbgc, pszBuf, cbBuf, pszFormat, va);
     237    va_end(va);
     238    return cch;
    213239}
    214240
     
    12551281    pDbgc->CmdHlp.pfnPrintfV            = dbgcHlpPrintfV;
    12561282    pDbgc->CmdHlp.pfnPrintf             = dbgcHlpPrintf;
     1283    pDbgc->CmdHlp.pfnStrPrintf          = dbgcHlpStrPrintf;
     1284    pDbgc->CmdHlp.pfnStrPrintfV         = dbgcHlpStrPrintfV;
    12571285    pDbgc->CmdHlp.pfnVBoxErrorV         = dbgcHlpVBoxErrorV;
    12581286    pDbgc->CmdHlp.pfnVBoxError          = dbgcHlpVBoxError;
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