VirtualBox

Changeset 75165 in vbox for trunk/src/VBox/VMM


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

VMM/DBGF: Let DBGR3AsLoadImage accept RTDBGASLINK_FLAGS_VALID_MASK and pass them on to DBGFR3AsLinkModule.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR3/DBGFAddrSpace.cpp

    r73397 r75165  
    959959 * @param   iModSeg         The segment to load, pass NIL_RTDBGSEGIDX to load
    960960 *                          the whole image.
    961  * @param   fFlags          Flags reserved for future extensions, must be 0.
     961 * @param   fFlags          For DBGFR3AsLinkModule, see RTDBGASLINK_FLAGS_*.
    962962 */
    963963VMMR3DECL(int) DBGFR3AsLoadImage(PUVM pUVM, RTDBGAS hDbgAs, const char *pszFilename, const char *pszModName, RTLDRARCH enmArch,
     
    971971    AssertReturn(*pszFilename, VERR_INVALID_PARAMETER);
    972972    AssertReturn(DBGFR3AddrIsValid(pUVM, pModAddress), VERR_INVALID_PARAMETER);
    973     AssertReturn(fFlags == 0, VERR_INVALID_PARAMETER);
     973    AssertReturn(!(fFlags & ~RTDBGASLINK_FLAGS_VALID_MASK), VERR_INVALID_PARAMETER);
    974974    RTDBGAS hRealAS = DBGFR3AsResolveAndRetain(pUVM, hDbgAs);
    975975    if (hRealAS == NIL_RTDBGAS)
     
    980980    if (RT_SUCCESS(rc))
    981981    {
    982         rc = DBGFR3AsLinkModule(pUVM, hRealAS, hDbgMod, pModAddress, iModSeg, 0);
     982        rc = DBGFR3AsLinkModule(pUVM, hRealAS, hDbgMod, pModAddress, iModSeg, fFlags & RTDBGASLINK_FLAGS_VALID_MASK);
    983983        if (RT_FAILURE(rc))
    984984            RTDbgModRelease(hDbgMod);
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