VirtualBox

Changeset 73761 in vbox for trunk/include/iprt


Ignore:
Timestamp:
Aug 19, 2018 1:42:25 PM (6 years ago)
Author:
vboxsync
Message:

IPRT/Dbg: Added simple stack formatter for the current thread.

Location:
trunk/include/iprt
Files:
2 edited

Legend:

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

    r73494 r73761  
    269269     */
    270270    DECLCALLBACKMEMBER(int, pfnReadStack)(struct RTDBGUNWINDSTATE *pThis, RTUINTPTR uSp, size_t cbToRead, void *pvDst);
    271     /** User argument (usefule for pfnReadStack). */
     271    /** User argument (useful for pfnReadStack). */
    272272    void               *pvUser;
    273273
     
    425425
    426426
     427/**
     428 * Dump the stack of the current thread into @a pszStack.
     429 *
     430 * This could be a little slow as it reads image and debug info again for each call.
     431 *
     432 * @returns Length of string returned in @a pszStack.
     433 * @param   pszStack        The output buffer.
     434 * @param   cbStack         The size of the output buffer.
     435 * @param   fFlags          Future flags, MBZ.
     436 *
     437 * @remarks Not present on all systems and contexts.
     438 */
     439RTDECL(size_t)          RTDbgStackDumpSelf(char *pszStack, size_t cbStack, uint32_t fFlags);
     440
     441
    427442# ifdef IN_RING3
    428443
  • trunk/include/iprt/mangling.h

    r73705 r73761  
    758758# define RTDbgModSymbolCount                            RT_MANGLER(RTDbgModSymbolCount)
    759759# define RTDbgModUnwindFrame                            RT_MANGLER(RTDbgModUnwindFrame)
     760# define RTDbgStackDumpSelf                             RT_MANGLER(RTDbgStackDumpSelf)
    760761# define RTDbgSymbolAlloc                               RT_MANGLER(RTDbgSymbolAlloc)
    761762# define RTDbgSymbolDup                                 RT_MANGLER(RTDbgSymbolDup)
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