VirtualBox

Ignore:
Timestamp:
Mar 31, 2016 12:26:24 AM (9 years ago)
Author:
vboxsync
Message:

dbgmodcodeview.cpp: two CV8 bugfixes.

File:
1 edited

Legend:

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

    r60258 r60263  
    786786        AssertReturn(pvNew, VERR_NO_MEMORY);
    787787        pThis->pchSrcStrings     = (char *)pvNew;
    788         pThis->cbSrcStrings      = cbSrcStrings;
    789788        pThis->cbSrcStringsAlloc = cbSrcStrings + 1;
    790789    }
    791790    memcpy(pThis->pchSrcStrings, pvSrcStrings, cbSrcStrings);
    792791    pThis->pchSrcStrings[cbSrcStrings] = '\0';
     792    pThis->cbSrcStrings = cbSrcStrings;
     793    Log2(("    saved %#x bytes of CV8 source strings\n", cbSrcStrings));
    793794
    794795    if (LogIs3Enabled())
     
    827828        AssertReturn(pvNew, VERR_NO_MEMORY);
    828829        pThis->pbSrcInfo      = (uint8_t *)pvNew;
    829         pThis->cbSrcInfo      = cbSrcInfo;
    830830        pThis->cbSrcInfoAlloc = cbSrcInfo + sizeof(RTCV8SRCINFO);
    831831    }
    832832    memcpy(pThis->pbSrcInfo, pvSrcInfo, cbSrcInfo);
    833833    memset(&pThis->pbSrcInfo[cbSrcInfo], 0, sizeof(RTCV8SRCINFO));
     834    pThis->cbSrcInfo = cbSrcInfo;
     835    Log2(("    saved %#x bytes of CV8 source file info\n", cbSrcInfo));
    834836
    835837    if (LogIs3Enabled())
     
    902904                                    ? &pThis->pchSrcStrings[pSrcInfo->offSourceName] : "unknown.c";
    903905            pszName = rtDbgModCvAddSanitizedStringToCache(pszName, RTSTR_MAX);
    904             Log2(("RTDbgModCv:     #%u lines, %#x bytes, %#x=%s\n", pSrcHdr->cLines, pSrcHdr->cb, pSrcHdr->offSourceInfo, pszName));
     906            Log2(("RTDbgModCv:     #%u lines, %#x bytes, %#x=%s\n", pSrcHdr->cLines, pSrcHdr->cb, pSrcInfo->offSourceName, pszName));
    905907
    906908            if (pszName)
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