Changeset 22112 in vbox for trunk/src/recompiler
- Timestamp:
- Aug 9, 2009 8:14:32 PM (15 years ago)
- Location:
- trunk/src/recompiler
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/recompiler/VBoxREMWrapper.cpp
r20426 r22112 577 577 { REMPARMDESC_FLAGS_INT, sizeof(PCDBGFINFOHLP), NULL } 578 578 }; 579 static const REMPARMDESC g_aArgsDBGFR3SymbolByAddr[] = 580 { 581 { REMPARMDESC_FLAGS_INT, sizeof(PVM), NULL }, 582 { REMPARMDESC_FLAGS_GCPTR, sizeof(RTGCUINTPTR), NULL }, 583 { REMPARMDESC_FLAGS_GCPTR, sizeof(RTGCINTPTR), NULL }, 584 { REMPARMDESC_FLAGS_INT, sizeof(PDBGFSYMBOL), NULL } 579 static const REMPARMDESC g_aArgsDBGFR3AsSymbolByAddr[] = 580 { 581 { REMPARMDESC_FLAGS_INT, sizeof(PVM), NULL }, 582 { REMPARMDESC_FLAGS_INT, sizeof(RTDBGAS), NULL }, 583 { REMPARMDESC_FLAGS_INT, sizeof(PCDBGFADDRESS), NULL }, 584 { REMPARMDESC_FLAGS_GCPTR, sizeof(PRTGCINTPTR), NULL }, 585 { REMPARMDESC_FLAGS_INT, sizeof(PRTDBGSYMBOL), NULL }, 586 { REMPARMDESC_FLAGS_INT, sizeof(PRTDBGMOD), NULL } 585 587 }; 586 588 static const REMPARMDESC g_aArgsDISInstr[] = … … 714 716 { REMPARMDESC_FLAGS_INT, sizeof(uint8_t), NULL } 715 717 }; 716 static const REMPARMDESC g_aArgsPDMR3CritSectInit[] = 718 static const REMPARMDESC g_aArgsPDMR3CritSectInit[] = 717 719 { 718 720 { REMPARMDESC_FLAGS_INT, sizeof(PVM), NULL }, … … 720 722 { REMPARMDESC_FLAGS_INT, sizeof(char *), NULL } 721 723 }; 722 static const REMPARMDESC g_aArgsPDMCritSectEnter[] = 724 static const REMPARMDESC g_aArgsPDMCritSectEnter[] = 723 725 { 724 726 { REMPARMDESC_FLAGS_INT, sizeof(PPDMCRITSECT), NULL }, … … 1114 1116 { "DBGFR3Info", (void *)(uintptr_t)&DBGFR3Info, &g_aArgsDBGFR3Info[0], RT_ELEMENTS(g_aArgsDBGFR3Info), REMFNDESC_FLAGS_RET_INT, sizeof(int), NULL }, 1115 1117 { "DBGFR3InfoLogRelHlp", (void *)(uintptr_t)&DBGFR3InfoLogRelHlp, NULL, 0, REMFNDESC_FLAGS_RET_INT, sizeof(void *), NULL }, 1116 { "DBGFR3 SymbolByAddr", (void *)(uintptr_t)&DBGFR3SymbolByAddr, &g_aArgsDBGFR3SymbolByAddr[0], RT_ELEMENTS(g_aArgsDBGFR3SymbolByAddr),REMFNDESC_FLAGS_RET_INT, sizeof(int), NULL },1118 { "DBGFR3AsSymbolByAddr", (void *)(uintptr_t)&DBGFR3AsSymbolByAddr, &g_aArgsDBGFR3AsSymbolByAddr[0], RT_ELEMENTS(g_aArgsDBGFR3AsSymbolByAddr), REMFNDESC_FLAGS_RET_INT, sizeof(int), NULL }, 1117 1119 { "DISInstr", (void *)(uintptr_t)&DISInstr, &g_aArgsDISInstr[0], RT_ELEMENTS(g_aArgsDISInstr), REMFNDESC_FLAGS_RET_INT, sizeof(bool), NULL }, 1118 1120 { "EMR3FatalError", (void *)(uintptr_t)&EMR3FatalError, &g_aArgsEMR3FatalError[0], RT_ELEMENTS(g_aArgsEMR3FatalError), REMFNDESC_FLAGS_RET_VOID, 0, NULL }, … … 1145 1147 { "PDMCritSectEnter", (void *)(uintptr_t)&PDMCritSectEnter, &g_aArgsPDMCritSectEnter[0], RT_ELEMENTS(g_aArgsPDMCritSectEnter), REMFNDESC_FLAGS_RET_INT, sizeof(int), NULL }, 1146 1148 { "PDMCritSectLeave", (void *)(uintptr_t)&PDMCritSectLeave, &g_aArgsPTR[0], RT_ELEMENTS(g_aArgsPTR), REMFNDESC_FLAGS_RET_VOID, 0, NULL }, 1147 1149 1148 1150 { "PDMGetInterrupt", (void *)(uintptr_t)&PDMGetInterrupt, &g_aArgsPDMGetInterrupt[0], RT_ELEMENTS(g_aArgsPDMGetInterrupt), REMFNDESC_FLAGS_RET_INT, sizeof(int), NULL }, 1149 1151 { "PDMIsaSetIrq", (void *)(uintptr_t)&PDMIsaSetIrq, &g_aArgsPDMIsaSetIrq[0], RT_ELEMENTS(g_aArgsPDMIsaSetIrq), REMFNDESC_FLAGS_RET_INT, sizeof(int), NULL }, -
trunk/src/recompiler/VBoxRecompiler.c
r21146 r22112 3846 3846 const char *lookup_symbol(target_ulong orig_addr) 3847 3847 { 3848 RTGCINTPTR off = 0; 3849 DBGFSYMBOL Sym; 3850 PVM pVM = cpu_single_env->pVM; 3851 int rc = DBGFR3SymbolByAddr(pVM, orig_addr, &off, &Sym); 3848 PVM pVM = cpu_single_env->pVM; 3849 RTGCINTPTR off = 0; 3850 RTDBGSYMBOL Sym; 3851 DBGFADDRESS Addr; 3852 3853 int rc = DBGFR3AsSymbolByAddr(pVM, DBGF_AS_GLOBAL, DBGFR3AddrFromFlat(pVM, &Addr, orig_addr), &off, &Sym, NULL /*phMod*/); 3852 3854 if (RT_SUCCESS(rc)) 3853 3855 {
Note:
See TracChangeset
for help on using the changeset viewer.