VirtualBox

Changeset 103424 in vbox


Ignore:
Timestamp:
Feb 19, 2024 10:25:36 AM (9 months ago)
Author:
vboxsync
Message:

DBGPlugInDarwin: Reworked the r161579 changes. bugref:3409

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Debugger/DBGPlugInDarwin.cpp

    r103285 r103424  
    715715            if (aSegs[iSeg].cb > 0 && RT_SUCCESS(rc))
    716716            {
    717                 char szTmp[RTDBG_SEGMENT_NAME_LENGTH + sizeof("_start")];
    718                 rc = RTStrCat(RTStrCopy2(szTmp, sizeof(szTmp), aSegs[iSeg].szName), sizeof(szTmp), "_start");
    719                 if (RT_SUCCESS(rc))
    720                     rc = RTDbgModSymbolAdd(hMod, szTmp, iSeg, 0 /*uRva*/, 0 /*cb*/, 0 /*fFlags*/, NULL);
     717                static const char s_szSuffix[] = "_start";
     718                size_t const      cchName = RTStrNLen(aSegs[iSeg].szName, sizeof(aSegs[iSeg].szName));
     719                char              szTmp[sizeof(aSegs[iSeg].szName) + sizeof(s_szSuffix)];
     720                memcpy(mempcpy(szTmp, aSegs[iSeg].szName, cchName), s_szSuffix, sizeof(s_szSuffix));
     721                rc = RTDbgModSymbolAdd(hMod, szTmp, iSeg, 0 /*uRva*/, 0 /*cb*/, 0 /*fFlags*/, NULL);
    721722            }
    722723            uRvaNext += aSegs[iSeg].cb;
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