VirtualBox

Ignore:
Timestamp:
Aug 4, 2018 7:41:30 PM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
124121
Message:

IPRT: Added single stack frame unwind function to RTDbgMod and RTLdr, copying over the PoC from DBGFRStack.cpp. bugref:3897

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/dbg/dbgmodldr.cpp

    r73412 r73494  
    6161typedef RTDBGMODLDR *PRTDBGMODLDR;
    6262
     63
     64
     65/** @interface_method_impl{RTDBGMODVTDBG,pfnUnwindFrame} */
     66static DECLCALLBACK(int) rtDbgModLdr_UnwindFrame(PRTDBGMODINT pMod, RTDBGSEGIDX iSeg, RTUINTPTR off, PRTDBGUNWINDSTATE pState)
     67{
     68    PRTDBGMODLDR pThis = (PRTDBGMODLDR)pMod->pvImgPriv;
     69    Assert(pThis->u32Magic == RTDBGMODLDR_MAGIC);
     70    return RTLdrUnwindFrame(pThis->hLdrMod, NULL, iSeg, off, pState);
     71}
    6372
    6473
     
    241250    /*.pfnGetArch = */                  rtDbgModLdr_GetArch,
    242251    /*.pfnQueryProp = */                rtDbgModLdr_QueryProp,
     252    /*.pfnUnwindFrame = */              rtDbgModLdr_UnwindFrame,
    243253
    244254    /*.u32EndMagic = */                 RTDBGMODVTIMG_MAGIC
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