VirtualBox

Changeset 75164 in vbox for trunk


Ignore:
Timestamp:
Oct 29, 2018 9:00:03 PM (6 years ago)
Author:
vboxsync
Message:

DBGC: Fixed loadseg argument parsing bug, made it use RTDBGASLINK_FLAGS_REPLACE.

File:
1 edited

Legend:

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

    r73491 r75164  
    15011501        return DBGCCmdHlpVBoxError(pCmdHlp, rc, "pfnVarToDbgfAddr: %Dv\n", &paArgs[1]);
    15021502
    1503     RTDBGSEGIDX     iModSeg     = (RTDBGSEGIDX)paArgs[1].u.u64Number;
     1503    RTDBGSEGIDX     iModSeg     = (RTDBGSEGIDX)paArgs[2].u.u64Number;
    15041504    if (    iModSeg != paArgs[2].u.u64Number
    15051505        ||  iModSeg > RTDBGSEGIDX_LAST)
     
    15171517     */
    15181518    PDBGC pDbgc = DBGC_CMDHLP2DBGC(pCmdHlp);
    1519     rc = DBGFR3AsLoadImage(pUVM, pDbgc->hDbgAs, pszFilename, pszModName, RTLDRARCH_WHATEVER, &ModAddress, iModSeg, 0 /*fFlags*/);
     1519    rc = DBGFR3AsLoadImage(pUVM, pDbgc->hDbgAs, pszFilename, pszModName, RTLDRARCH_WHATEVER,
     1520                           &ModAddress, iModSeg, RTDBGASLINK_FLAGS_REPLACE);
    15201521    if (RT_FAILURE(rc))
    1521         return DBGCCmdHlpVBoxError(pCmdHlp, rc, "DBGFR3ModuleLoadImage(,,'%s','%s',%Dv,)\n",
     1522        return DBGCCmdHlpVBoxError(pCmdHlp, rc, "DBGFR3ModuleLoadImage(,,'%s','%s',%Dv,,)\n",
    15221523                                   pszFilename, pszModName, &paArgs[1]);
    15231524
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