VirtualBox

Changeset 19189 in vbox


Ignore:
Timestamp:
Apr 26, 2009 4:06:05 PM (16 years ago)
Author:
vboxsync
Message:

DBGFSym: Build fix in DBGHELP.DLL mode.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/DBGFSym.cpp

    r16080 r19189  
    2525*******************************************************************************/
    2626#define LOG_GROUP LOG_GROUP_DBGF
    27 #if defined(RT_OS_WINDOWS) && 0 //defined(DEBUG_bird) // enabled this is you want to debug win32 guests or the hypervisor.
     27#if defined(RT_OS_WINDOWS) && 1 //defined(DEBUG_bird) // enabled this is you want to debug win32 guests or the hypervisor.
    2828# include <Windows.h>
    2929# define _IMAGEHLP64
     
    5555*******************************************************************************/
    5656#ifdef HAVE_DBGHELP
    57 static DECLCALLBACK(int) dbgfR3EnumModules(PVM pVM, const char *pszFilename, const char *pszName, RTUINTPTR ImageBase, size_t cbImage, bool fGC);
     57static DECLCALLBACK(int) dbgfR3EnumModules(PVM pVM, const char *pszFilename, const char *pszName,
     58                                           RTUINTPTR ImageBase, size_t cbImage, bool fRC, void *pvArg);
    5859static int win32Error(PVM pVM);
    5960#endif
     
    353354         * Enumerate all modules loaded by PDM and add them to the symbol database.
    354355         */
    355         PDMR3EnumModules(pVM, dbgfR3EnumModules, NULL);
     356        PDMR3LdrEnumModules(pVM, dbgfR3EnumModules, NULL);
    356357        return VINF_SUCCESS;
    357358    }
     
    375376 * @param   ImageBase       Address where to executable image is loaded.
    376377 * @param   cbImage         Size of the executable image.
    377  * @param   fGC             Set if guest context, clear if host context.
     378 * @param   fRC             Set if guest context, clear if host context.
    378379 * @param   pvArg           User argument.
    379380 */
    380 static DECLCALLBACK(int) dbgfR3EnumModules(PVM pVM, const char *pszFilename, const char *pszName, RTUINTPTR ImageBase, size_t cbImage, bool fGC)
    381 {
    382     if (fGC)
    383     {
    384         DWORD64 LoadedImageBase = SymLoadModule64(pVM, NULL, (char *)(void *)pszFilename, (char *)(void *)pszName, ImageBase, cbImage);
     381static DECLCALLBACK(int) dbgfR3EnumModules(PVM pVM, const char *pszFilename, const char *pszName,
     382                                           RTUINTPTR ImageBase, size_t cbImage, bool fRC, void *pvArg)
     383{
     384    if (fRC)
     385    {
     386        DWORD64 LoadedImageBase = SymLoadModule64(pVM, NULL, (char *)(void *)pszFilename,
     387                                                  (char *)(void *)pszName, ImageBase, (DWORD)cbImage);
    385388        if (!LoadedImageBase)
    386389            Log(("SymLoadModule64(,,%s,,) -> lasterr=%d\n", pszFilename, GetLastError()));
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