Changeset 16436 in vbox
- Timestamp:
- Jan 31, 2009 1:18:12 AM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 42303
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/src/VBox/Runtime/testcase/tstLdr-3.cpp ¶
r14831 r16436 78 78 static DECLCALLBACK(int) testGetImport(RTLDRMOD hLdrMod, const char *pszModule, const char *pszSymbol, unsigned uSymbol, RTUINTPTR *pValue, void *pvUser) 79 79 { 80 /* check the name format and only permit certain names */81 *pValue = 0xf0f0f0f0;80 RTUINTPTR BaseAddr = *(PCRTUINTPTR)pvUser; 81 *pValue = BaseAddr + UINT32_C(0x604020f0); 82 82 return VINF_SUCCESS; 83 83 } … … 192 192 193 193 void *pvBits = RTMemAlloc(RTLdrSize(hLdrMod)); 194 rc = RTLdrGetBits(hLdrMod, pvBits, LoadAddr, testGetImport, NULL);194 rc = RTLdrGetBits(hLdrMod, pvBits, LoadAddr, testGetImport, &LoadAddr); 195 195 if (RT_SUCCESS(rc)) 196 196 { … … 214 214 DISCPUSTATE Cpu; 215 215 memset(&Cpu, 0, sizeof(Cpu)); 216 #if 1 216 217 Cpu.mode = CPUMODE_32BIT; 218 #else 219 Cpu.mode = CPUMODE_64BIT; 220 #endif 217 221 uint8_t *pbCode = (uint8_t *)pvBits + (NearSym.aSyms[0].Value - LoadAddr); 218 222 MyDisBlock(&Cpu, (uintptr_t)pbCode,
Note:
See TracChangeset
for help on using the changeset viewer.