Changeset 60263 in vbox for trunk/src/VBox/Runtime/common/dbg
- Timestamp:
- Mar 31, 2016 12:26:24 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/dbg/dbgmodcodeview.cpp
r60258 r60263 786 786 AssertReturn(pvNew, VERR_NO_MEMORY); 787 787 pThis->pchSrcStrings = (char *)pvNew; 788 pThis->cbSrcStrings = cbSrcStrings;789 788 pThis->cbSrcStringsAlloc = cbSrcStrings + 1; 790 789 } 791 790 memcpy(pThis->pchSrcStrings, pvSrcStrings, cbSrcStrings); 792 791 pThis->pchSrcStrings[cbSrcStrings] = '\0'; 792 pThis->cbSrcStrings = cbSrcStrings; 793 Log2((" saved %#x bytes of CV8 source strings\n", cbSrcStrings)); 793 794 794 795 if (LogIs3Enabled()) … … 827 828 AssertReturn(pvNew, VERR_NO_MEMORY); 828 829 pThis->pbSrcInfo = (uint8_t *)pvNew; 829 pThis->cbSrcInfo = cbSrcInfo;830 830 pThis->cbSrcInfoAlloc = cbSrcInfo + sizeof(RTCV8SRCINFO); 831 831 } 832 832 memcpy(pThis->pbSrcInfo, pvSrcInfo, cbSrcInfo); 833 833 memset(&pThis->pbSrcInfo[cbSrcInfo], 0, sizeof(RTCV8SRCINFO)); 834 pThis->cbSrcInfo = cbSrcInfo; 835 Log2((" saved %#x bytes of CV8 source file info\n", cbSrcInfo)); 834 836 835 837 if (LogIs3Enabled()) … … 902 904 ? &pThis->pchSrcStrings[pSrcInfo->offSourceName] : "unknown.c"; 903 905 pszName = rtDbgModCvAddSanitizedStringToCache(pszName, RTSTR_MAX); 904 Log2(("RTDbgModCv: #%u lines, %#x bytes, %#x=%s\n", pSrcHdr->cLines, pSrcHdr->cb, pSrc Hdr->offSourceInfo, pszName));906 Log2(("RTDbgModCv: #%u lines, %#x bytes, %#x=%s\n", pSrcHdr->cLines, pSrcHdr->cb, pSrcInfo->offSourceName, pszName)); 905 907 906 908 if (pszName)
Note:
See TracChangeset
for help on using the changeset viewer.