VirtualBox

Changeset 84054 in vbox for trunk/src/VBox/Debugger


Ignore:
Timestamp:
Apr 28, 2020 4:05:00 PM (5 years ago)
Author:
vboxsync
Message:

IPRT,++: Apply bldprog-strtab.h and friends to the IPRT status message database (errmsg.cpp) to reduce size. The interface (RTErrMsg*) has been reworked as we no longer have C-strings in the database, but 'compressed' string w/o zero terminators. bugref:9726

File:
1 edited

Legend:

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

    r82968 r84054  
    14731473
    14741474            default:
    1475             {
    1476                 PCRTSTATUSMSG pErr = RTErrGet(rc);
    1477                 if (strncmp(pErr->pszDefine, RT_STR_TUPLE("Unknown Status")))
    1478                     rc = DBGCCmdHlpPrintf(&pDbgc->CmdHlp, "Error: %s (%d) - %s\n", pErr->pszDefine, rc, pErr->pszMsgFull);
     1475                if (RTErrIsKnown(rc))
     1476                    rc = DBGCCmdHlpPrintf(&pDbgc->CmdHlp, "Error: %Rra\n", rc);
    14791477                else
    14801478                    rc = DBGCCmdHlpPrintf(&pDbgc->CmdHlp, "Error: Unknown error %d (%#x)!\n", rc, rc);
    14811479                break;
    1482             }
    14831480        }
    14841481    }
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