VirtualBox

Ignore:
Timestamp:
May 17, 2013 5:21:23 PM (12 years ago)
Author:
vboxsync
Message:

IPRT: Dwarf and ELF fixes.

File:
1 edited

Legend:

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

    r46115 r46149  
    451451
    452452/** @interface_method_impl{RTDBGMODVTIMG,pfnMapPart} */
    453 static DECLCALLBACK(int) rtDbgModDeferredImg_MapPart(PRTDBGMODINT pMod, RTFOFF off, size_t cb, void const **ppvMap)
    454 {
    455     int rc = rtDbgModDeferredDoIt(pMod, false /*fForceRetry*/);
    456     if (RT_SUCCESS(rc))
    457         rc = pMod->pImgVt->pfnMapPart(pMod, off, cb, ppvMap);
     453static DECLCALLBACK(int) rtDbgModDeferredImg_MapPart(PRTDBGMODINT pMod, uint32_t iDbgInfo, RTFOFF off, size_t cb, void const **ppvMap)
     454{
     455    int rc = rtDbgModDeferredDoIt(pMod, false /*fForceRetry*/);
     456    if (RT_SUCCESS(rc))
     457        rc = pMod->pImgVt->pfnMapPart(pMod, iDbgInfo, off, cb, ppvMap);
    458458    return rc;
    459459}
     
    465465    PRTDBGMODDEFERRED pThis = (PRTDBGMODDEFERRED)pMod->pvImgPriv;
    466466    return pThis->cbImage;
     467}
     468
     469
     470/** @interface_method_impl{RTDBGMODVTIMG,pfnRvaToSegOffset} */
     471static DECLCALLBACK(int) rtDbgModDeferredImg_RvaToSegOffset(PRTDBGMODINT pMod, RTLDRADDR uRva,
     472                                                            PRTDBGSEGIDX piSeg, PRTLDRADDR poffSeg)
     473{
     474    int rc = rtDbgModDeferredDoIt(pMod, false /*fForceRetry*/);
     475    if (RT_SUCCESS(rc))
     476        rc = pMod->pImgVt->pfnRvaToSegOffset(pMod, uRva, piSeg, poffSeg);
     477    return rc;
    467478}
    468479
     
    538549    /*.pfnGetLoadedSize = */            rtDbgModDeferredImg_ImageSize,
    539550    /*.pfnLinkAddressToSegOffset = */   rtDbgModDeferredImg_LinkAddressToSegOffset,
     551    /*.pfnRvaToSegOffset = */           rtDbgModDeferredImg_RvaToSegOffset,
    540552    /*.pfnMapPart = */                  rtDbgModDeferredImg_MapPart,
    541553    /*.pfnUnmapPart = */                rtDbgModDeferredImg_UnmapPart,
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