VirtualBox

Ignore:
Timestamp:
Sep 20, 2007 11:55:56 AM (17 years ago)
Author:
vboxsync
Message:

Log everything that's opened or loaded into ring-0 with .reload statements for windbg.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/SUPLib.cpp

    r4898 r4922  
    15381538                        if (RT_SUCCESS(rc))
    15391539                            rc = RTLdrGetSymbolEx(hLdrMod, &pLoadReq->u.In.achImage[0], (uintptr_t)OpenReq.u.Out.pvImageBase, "VMMR0EntryEx", &VMMR0EntryEx);
    1540                         LogRel(("VMMR0.r0 module loaded. VMMR0EntryEx located at %RTptr.\n", VMMR0EntryEx));
    15411540                    }
    15421541                    if (RT_SUCCESS(rc))
     
    16071606                               )
    16081607                            {
     1608                                LogRel(("SUP: Loaded %s (%s) at %#p - ModuleInit at %RTptr and ModuleTerm at %RTptr\n", pszModule, pszFilename,
     1609                                        OpenReq.u.Out.pvImageBase, ModuleInit, ModuleTerm));
    16091610                                if (fIsVMMR0)
     1611                                {
    16101612                                    g_pvVMMR0 = OpenReq.u.Out.pvImageBase;
     1613                                    LogRel(("SUP: VMMR0EntryEx located at %RTptr, VMMR0EntryFast at %RTptr and VMMR0EntryInt at %RTptr\n",
     1614                                            VMMR0EntryEx, VMMR0EntryFast, VMMR0EntryInt));
     1615                                }
     1616#ifdef RT_OS_WINDOWS
     1617                                LogRel(("SUP: windbg> .reload /f %s=%#p\n", pszFilename, OpenReq.u.Out.pvImageBase));
     1618#endif
     1619
    16111620                                RTMemTmpFree(pLoadReq);
    16121621                                RTLdrClose(hLdrMod);
     
    16241633            }
    16251634        }
    1626         else if (RT_SUCCESS(rc) && fIsVMMR0)
    1627             g_pvVMMR0 = OpenReq.u.Out.pvImageBase;
     1635        else if (RT_SUCCESS(rc))
     1636        {
     1637            if (fIsVMMR0)
     1638                g_pvVMMR0 = OpenReq.u.Out.pvImageBase;
     1639            LogRel(("SUP: Opened %s (%s) at %#p.\n", pszModule, pszFilename, OpenReq.u.Out.pvImageBase));
     1640#ifdef RT_OS_WINDOWS
     1641            LogRel(("SUP: windbg> .reload /f %s=%#p\n", pszFilename, OpenReq.u.Out.pvImageBase));
     1642#endif
     1643        }
    16281644    }
    16291645    RTLdrClose(hLdrMod);
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