Changeset 103424 in vbox
- Timestamp:
- Feb 19, 2024 10:25:36 AM (9 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Debugger/DBGPlugInDarwin.cpp
r103285 r103424 715 715 if (aSegs[iSeg].cb > 0 && RT_SUCCESS(rc)) 716 716 { 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); 721 722 } 722 723 uRvaNext += aSegs[iSeg].cb;
Note:
See TracChangeset
for help on using the changeset viewer.