VirtualBox

Changeset 73413 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jul 31, 2018 4:58:20 PM (6 years ago)
Author:
vboxsync
Message:

DBGPlugInWinNt.cpp: Must unlink all our modules during termination of we risk crashing when the private loader reader instance is closed, due to our plugin being unloaded.

File:
1 edited

Legend:

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

    r73150 r73413  
    798798    Assert(pThis->fValid);
    799799
    800     pThis->fValid = false;
    801 }
    802 
    803 
    804 /**
    805  * @copydoc DBGFOSREG::pfnRefresh
    806  */
    807 static DECLCALLBACK(int)  dbgDiggerWinNtRefresh(PUVM pUVM, void *pvData)
    808 {
    809     PDBGDIGGERWINNT pThis = (PDBGDIGGERWINNT)pvData;
    810     NOREF(pThis);
    811     Assert(pThis->fValid);
    812 
    813800    /*
    814      * For now we'll flush and reload everything.
     801     * As long as we're using our private LDR reader implementation,
     802     * we must unlink and ditch the modules we created.
    815803     */
    816804    RTDBGAS hDbgAs = DBGFR3AsResolveAndRetain(pUVM, DBGF_AS_KERNEL);
     
    834822    }
    835823
     824    pThis->fValid = false;
     825}
     826
     827
     828/**
     829 * @copydoc DBGFOSREG::pfnRefresh
     830 */
     831static DECLCALLBACK(int)  dbgDiggerWinNtRefresh(PUVM pUVM, void *pvData)
     832{
     833    PDBGDIGGERWINNT pThis = (PDBGDIGGERWINNT)pvData;
     834    NOREF(pThis);
     835    Assert(pThis->fValid);
     836
     837    /*
     838     * For now we'll flush and reload everything.
     839     */
    836840    dbgDiggerWinNtTerm(pUVM, pvData);
     841
    837842    return dbgDiggerWinNtInit(pUVM, pvData);
    838843}
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