VirtualBox

Ignore:
Timestamp:
Oct 22, 2018 7:48:54 PM (6 years ago)
Author:
vboxsync
Message:

IPRT/Dbg: Made the codeview debug info parser prefer symbols with sizes. This helps MakeAlternativeSource avoiding jump tables.

File:
1 edited

Legend:

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

    r74745 r74981  
    592592        if (RT_SUCCESS(rc))
    593593        {
    594             rc = RTDbgModSymbolAdd(pThis->hCnt, pszName, iSeg, off, cbSym, 0 /*fFlags*/, NULL);
     594            rc = RTDbgModSymbolAdd(pThis->hCnt, pszName, iSeg, off, cbSym, RTDBGSYMBOLADD_F_ADJUST_SIZES_ON_CONFLICT, NULL);
    595595
    596596            /* Simple duplicate symbol mangling, just to get more details. */
     
    609609
    610610            }
     611            else if (rc == VERR_DBG_ADDRESS_CONFLICT && cbSym)
     612                rc = RTDbgModSymbolAdd(pThis->hCnt, pszName, iSeg, off, cbSym,
     613                                       RTDBGSYMBOLADD_F_REPLACE_SAME_ADDR | RTDBGSYMBOLADD_F_ADJUST_SIZES_ON_CONFLICT, NULL);
    611614
    612615            Log(("Symbol: %04x:%08x %.*s [%Rrc]\n", iSeg, off, cchName, pchName, rc));
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