VirtualBox

Changeset 99570 in vbox for trunk/src/VBox/Runtime/common


Ignore:
Timestamp:
May 2, 2023 7:56:10 PM (21 months ago)
Author:
vboxsync
Message:

Runtime/dbg/dbgmod.cpp: Improve error message to identify the name and
length of the segment which has exceeded RTDBG_SEGMENT_NAME_LENGTH.

File:
1 edited

Legend:

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

    r98103 r99570  
    18181818    size_t cchName = strlen(pszName);
    18191819    AssertReturn(cchName > 0, VERR_DBG_SEGMENT_NAME_OUT_OF_RANGE);
    1820     AssertReturn(cchName < RTDBG_SEGMENT_NAME_LENGTH, VERR_DBG_SEGMENT_NAME_OUT_OF_RANGE);
     1820    AssertMsgReturn(cchName < RTDBG_SEGMENT_NAME_LENGTH, ("pszName=%s cchName=%zu\n", pszName, cchName),
     1821        VERR_DBG_SEGMENT_NAME_OUT_OF_RANGE);
    18211822    AssertMsgReturn(!fFlags, ("%#x\n", fFlags), VERR_INVALID_PARAMETER);
    18221823    AssertPtrNull(piSeg);
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