- Timestamp:
- Jan 26, 2007 6:24:34 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/recompiler/new/VBoxREMWrapper.cpp
r340 r371 178 178 #include <VBox/vmm.h> 179 179 #include <VBox/dbgf.h> 180 #include <VBox/dbg.h> 181 #include <VBox/csam.h> 180 182 #include <VBox/mm.h> 181 183 #include <VBox/em.h> … … 197 199 #include <iprt/path.h> 198 200 #include <iprt/string.h> 201 #include <iprt/stream.h> 199 202 200 203 … … 456 459 { REMPARMDESC_FLAGS_INT, sizeof(PCPUMCTX *) } 457 460 }; 461 static const REMPARMDESC g_aArgsCSAMR3MonitorPage[] = 462 { 463 { REMPARMDESC_FLAGS_INT, sizeof(PVM) }, 464 { REMPARMDESC_FLAGS_INT, sizeof(RTGCPTR) }, 465 { REMPARMDESC_FLAGS_INT, sizeof(CSAMTAG) } 466 }; 467 static const REMPARMDESC g_aArgsDBGCRegisterCommands[] = 468 { 469 { REMPARMDESC_FLAGS_INT, sizeof(PCDBGCCMD) }, 470 { REMPARMDESC_FLAGS_INT, sizeof(unsigned) } 471 }; 472 static const REMPARMDESC g_aArgsDBGFR3DisasInstrEx[] = 473 { 474 { REMPARMDESC_FLAGS_INT, sizeof(PVM) }, 475 { REMPARMDESC_FLAGS_INT, sizeof(RTSEL) }, 476 { REMPARMDESC_FLAGS_INT, sizeof(RTGCPTR) }, 477 { REMPARMDESC_FLAGS_INT, sizeof(unsigned) }, 478 { REMPARMDESC_FLAGS_INT, sizeof(char *) }, 479 { REMPARMDESC_FLAGS_INT, sizeof(uint32_t) }, 480 { REMPARMDESC_FLAGS_INT, sizeof(uint32_t *) } 481 }; 458 482 static const REMPARMDESC g_aArgsDBGFR3Info[] = 459 483 { … … 897 921 { "CPUMGetGuestESP", (void *)(uintptr_t)&CPUMGetGuestESP, &g_aArgsVM[0], ELEMENTS(g_aArgsVM), REMFNDESC_FLAGS_RET_INT, sizeof(uint32_t), NULL }, 898 922 { "CPUMQueryGuestCtxPtr", (void *)(uintptr_t)&CPUMQueryGuestCtxPtr, &g_aArgsCPUMQueryGuestCtxPtr[0], ELEMENTS(g_aArgsCPUMQueryGuestCtxPtr), REMFNDESC_FLAGS_RET_INT, sizeof(int), NULL }, 923 { "CSAMR3MonitorPage", (void *)(uintptr_t)&CSAMR3MonitorPage, &g_aArgsCSAMR3MonitorPage[0], ELEMENTS(g_aArgsCSAMR3MonitorPage), REMFNDESC_FLAGS_RET_INT, sizeof(int), NULL }, 924 { "DBGCRegisterCommands", (void *)(uintptr_t)&DBGCRegisterCommands, &g_aArgsDBGCRegisterCommands[0], ELEMENTS(g_aArgsDBGCRegisterCommands), REMFNDESC_FLAGS_RET_INT, sizeof(int), NULL }, 925 { "DBGFR3DisasInstrEx", (void *)(uintptr_t)&DBGFR3DisasInstrEx, &g_aArgsDBGFR3DisasInstrEx[0], ELEMENTS(g_aArgsDBGFR3DisasInstrEx), REMFNDESC_FLAGS_RET_INT, sizeof(int), NULL }, 899 926 { "DBGFR3Info", (void *)(uintptr_t)&DBGFR3Info, &g_aArgsDBGFR3Info[0], ELEMENTS(g_aArgsDBGFR3Info), REMFNDESC_FLAGS_RET_INT, sizeof(int), NULL }, 927 { "DBGFR3InfoLogRelHlp", (void *)(uintptr_t)&DBGFR3InfoLogRelHlp, NULL, 0, REMFNDESC_FLAGS_RET_INT, sizeof(void *), NULL }, 900 928 { "DBGFR3SymbolByAddr", (void *)(uintptr_t)&DBGFR3SymbolByAddr, &g_aArgsDBGFR3SymbolByAddr[0], ELEMENTS(g_aArgsDBGFR3SymbolByAddr), REMFNDESC_FLAGS_RET_INT, sizeof(int), NULL }, 901 929 { "DISInstr", (void *)(uintptr_t)&DISInstr, &g_aArgsDISInstr[0], ELEMENTS(g_aArgsDISInstr), REMFNDESC_FLAGS_RET_INT, sizeof(bool), NULL }, … … 965 993 { "VMR3ReqFree", (void *)(uintptr_t)&VMR3ReqFree, &g_aArgsVMR3ReqFree[0], ELEMENTS(g_aArgsVMR3ReqFree), REMFNDESC_FLAGS_RET_INT | REMFNDESC_FLAGS_ELLIPSIS, sizeof(int), NULL }, 966 994 // { "", (void *)(uintptr_t)&, &g_aArgsVM[0], ELEMENTS(g_aArgsVM), REMFNDESC_FLAGS_RET_INT, sizeof(int), NULL }, 967 968 995 }; 969 996 … … 977 1004 { "AssertMsg2", (void *)(uintptr_t)&AssertMsg2, &g_aArgsAssertMsg2[0], ELEMENTS(g_aArgsAssertMsg2), REMFNDESC_FLAGS_RET_VOID | REMFNDESC_FLAGS_ELLIPSIS, 0, NULL }, 978 1005 { "RTLogDefaultInstance", (void *)(uintptr_t)&RTLogDefaultInstance, NULL, 0, REMFNDESC_FLAGS_RET_INT, sizeof(PRTLOGGER), NULL }, 1006 { "RTLogRelDefaultInstance", (void *)(uintptr_t)&RTLogRelDefaultInstance, NULL, 0, REMFNDESC_FLAGS_RET_INT, sizeof(PRTLOGGER), NULL }, 979 1007 { "RTLogFlags", (void *)(uintptr_t)&RTLogFlags, &g_aArgsRTLogFlags[0], ELEMENTS(g_aArgsRTLogFlags), REMFNDESC_FLAGS_RET_INT, sizeof(int), NULL }, 980 1008 { "RTLogLoggerEx", (void *)(uintptr_t)&RTLogLoggerEx, &g_aArgsRTLogLoggerEx[0], ELEMENTS(g_aArgsRTLogLoggerEx), REMFNDESC_FLAGS_RET_VOID | REMFNDESC_FLAGS_ELLIPSIS, 0, NULL }, … … 1481 1509 if (g_pvREM2) 1482 1510 { 1511 #ifdef DEBUG /* How to load the VBoxREM2.rel symbols into the GNU debugger. */ 1512 RTPrintf("VBoxREMWrapper: (gdb) add-symbol-file %s 0x%p\n", szPath, g_pvREM2); 1513 #endif 1514 Log(("Loading %s at 0x%p (%d bytes)\n" 1515 "(gdb) add-symbol-file %s 0x%p\n", 1516 szPath, g_pvREM2, RTLdrSize(g_ModREM2), szPath, g_pvREM2)); 1483 1517 rc = RTLdrGetBits(g_ModREM2, g_pvREM2, (RTUINTPTR)g_pvREM2, remGetImport, NULL); 1484 1518 if (VBOX_SUCCESS(rc))
Note:
See TracChangeset
for help on using the changeset viewer.