Changeset 19189 in vbox
- Timestamp:
- Apr 26, 2009 4:06:05 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/DBGFSym.cpp
r16080 r19189 25 25 *******************************************************************************/ 26 26 #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. 28 28 # include <Windows.h> 29 29 # define _IMAGEHLP64 … … 55 55 *******************************************************************************/ 56 56 #ifdef HAVE_DBGHELP 57 static DECLCALLBACK(int) dbgfR3EnumModules(PVM pVM, const char *pszFilename, const char *pszName, RTUINTPTR ImageBase, size_t cbImage, bool fGC); 57 static DECLCALLBACK(int) dbgfR3EnumModules(PVM pVM, const char *pszFilename, const char *pszName, 58 RTUINTPTR ImageBase, size_t cbImage, bool fRC, void *pvArg); 58 59 static int win32Error(PVM pVM); 59 60 #endif … … 353 354 * Enumerate all modules loaded by PDM and add them to the symbol database. 354 355 */ 355 PDMR3 EnumModules(pVM, dbgfR3EnumModules, NULL);356 PDMR3LdrEnumModules(pVM, dbgfR3EnumModules, NULL); 356 357 return VINF_SUCCESS; 357 358 } … … 375 376 * @param ImageBase Address where to executable image is loaded. 376 377 * @param cbImage Size of the executable image. 377 * @param f GC Set if guest context, clear if host context.378 * @param fRC Set if guest context, clear if host context. 378 379 * @param pvArg User argument. 379 380 */ 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); 381 static 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); 385 388 if (!LoadedImageBase) 386 389 Log(("SymLoadModule64(,,%s,,) -> lasterr=%d\n", pszFilename, GetLastError()));
Note:
See TracChangeset
for help on using the changeset viewer.