VirtualBox

Changeset 73761 in vbox for trunk


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
Files:
2 added
3 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)
  • trunk/src/VBox/Runtime/Makefile.kmk

    r73751 r73761  
    748748        common/asm/ASMSerializeInstruction-iret.asm \
    749749        common/asm/ASMSerializeInstruction-rdtscp.asm \
     750        common/dbg/dbgstackdumpself.cpp \
     751        common/dbg/dbgstackdumpself-amd64-x86.asm \
    750752        common/math/bignum-amd64-x86.asm
    751753RuntimeR3_SOURCES.amd64 += \
     
    769771        common/asm/ASMSerializeInstruction-iret.asm \
    770772        common/asm/ASMSerializeInstruction-rdtscp.asm \
     773        common/dbg/dbgstackdumpself.cpp \
     774        common/dbg/dbgstackdumpself-amd64-x86.asm \
    771775        common/math/bignum-amd64-x86.asm \
    772776        common/math/RTUInt128MulByU64.asm
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