VirtualBox

Ignore:
Timestamp:
Sep 10, 2013 8:34:22 AM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
88834
Message:

dbgmoddwarf.cpp: mach_kernel hack.

File:
1 edited

Legend:

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

    r47824 r48398  
    464464    RTLISTANCHOR            CompileUnitList;
    465465
     466    /** Set if we have to use link addresses because the module does not have
     467     *  fixups (mach_kernel). */
     468    bool                    fUseLinkAddress;
    466469    /** This is set to -1 if we're doing everything in one pass.
    467470     * Otherwise it's 1 or 2:
     
    15041507    }
    15051508
     1509    if (pThis->fUseLinkAddress)
     1510        return pThis->pImgMod->pImgVt->pfnLinkAddressToSegOffset(pThis->pImgMod, LinkAddress, piSeg, poffSeg);
    15061511    return pThis->pImgMod->pImgVt->pfnRvaToSegOffset(pThis->pImgMod, LinkAddress, piSeg, poffSeg);
    1507     //return pThis->pImgMod->pImgVt->pfnLinkAddressToSegOffset(pThis->pImgMod, LinkAddress, piSeg, poffSeg);
    15081512}
    15091513
     
    46984702    pThis->pImgMod     = pMod;
    46994703    RTListInit(&pThis->CompileUnitList);
     4704    /** @todo better fUseLinkAddress heuristics! */
     4705    if (   (pMod->pszDbgFile && strstr(pMod->pszDbgFile, "mach_kernel"))
     4706        || (pMod->pszImgFile && strstr(pMod->pszImgFile, "mach_kernel")) )
     4707        pThis->fUseLinkAddress = true;
    47004708
    47014709#ifdef RTDBGMODDWARF_WITH_MEM_CACHE
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