VirtualBox

Changeset 73445 in vbox for trunk/include


Ignore:
Timestamp:
Aug 2, 2018 10:54:16 AM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
124072
Message:

DBGC: Display recovered non-volatile registers in the 'kv' and 'kgv' commands.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/dbg.h

    r69181 r73445  
    734734
    735735/**
     736 * Command helper for writing formatted text to the debug console.
     737 *
     738 * @returns Number of bytes written.
     739 * @param   pCmdHlp     Pointer to the command callback structure.
     740 * @param   pszFormat   The format string.  This may use all IPRT extensions as
     741 *                      well as the debugger ones.
     742 * @param   ...         Arguments specified in the format string.
     743 */
     744DECLINLINE(size_t) RT_IPRT_FORMAT_ATTR(2, 3) DBGCCmdHlpPrintfLen(PDBGCCMDHLP pCmdHlp, const char *pszFormat, ...)
     745{
     746    va_list va;
     747    int     rc;
     748    size_t  cbWritten = 0;
     749
     750    va_start(va, pszFormat);
     751    rc = pCmdHlp->pfnPrintfV(pCmdHlp, &cbWritten, pszFormat, va);
     752    va_end(va);
     753
     754    return RT_SUCCESS(rc) ? cbWritten : 0;
     755}
     756
     757/**
    736758 * @copydoc DBGCCMDHLP::pfnStrPrintf
    737759 */
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