Changeset 41675 in vbox for trunk/src/VBox/Runtime
- Timestamp:
- Jun 12, 2012 8:27:37 PM (13 years ago)
- Location:
- trunk/src/VBox/Runtime/testcase
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/testcase/tstLdr-2.cpp
r41671 r41675 47 47 char szOutput[256]; 48 48 uint32_t cbInstr; 49 if (RT_FAILURE(DISInstrToStr(pbCodeBlock + i, CPUMODE_32BIT, &Cpu, &cbInstr, szOutput, sizeof(szOutput))))49 if (RT_FAILURE(DISInstrToStr(pbCodeBlock + i, DISCPUMODE_32BIT, &Cpu, &cbInstr, szOutput, sizeof(szOutput)))) 50 50 return false; 51 51 -
trunk/src/VBox/Runtime/testcase/tstLdr-3.cpp
r41674 r41675 247 247 memset(&Cpu, 0, sizeof(Cpu)); 248 248 #ifdef RT_ARCH_X86 /** @todo select according to the module type. */ 249 Cpu.mode = CPUMODE_32BIT;249 Cpu.mode = DISCPUMODE_32BIT; 250 250 #else 251 Cpu.mode = CPUMODE_64BIT;251 Cpu.mode = DISCPUMODE_64BIT; 252 252 #endif 253 253 uint8_t *pbCode = (uint8_t *)g_pvBits + (NearSym.aSyms[0].Value - g_uLoadAddr); -
trunk/src/VBox/Runtime/testcase/tstLdrDisasmTest.cpp
r41674 r41675 105 105 { 106 106 uint32_t cb; 107 int rc = DISInstrWithReader(CodeIndex, CPUMODE_32BIT, DisasmTest1ReadCode, 0, pCpu, &cb);107 int rc = DISInstrWithReader(CodeIndex, DISCPUMODE_32BIT, DisasmTest1ReadCode, 0, pCpu, &cb); 108 108 *pcb = cb; 109 109 MY_PRINTF(("DISCoreOneEx -> rc=%d cb=%d Cpu: opcode=%#x pCurInstr=%p (42=%d)\n", \ … … 122 122 123 123 memset(&Cpu, 0, sizeof(Cpu)); 124 Cpu.mode = CPUMODE_32BIT;124 Cpu.mode = DISCPUMODE_32BIT; 125 125 126 126 #define DISAS_AND_CHECK(cbInstr, enmOp) \ -
trunk/src/VBox/Runtime/testcase/tstLdrObj.cpp
r41674 r41675 98 98 static unsigned cb; 99 99 DISCPUSTATE Cpu; 100 DISInstr((void *)(uintptr_t)SomeExportFunction3, CPUMODE_32BIT, &Cpu, &cb);100 DISInstr((void *)(uintptr_t)SomeExportFunction3, DISCPUMODE_32BIT, &Cpu, &cb); 101 101 return (void *)(uintptr_t)&SomeExportFunction1; 102 102 } -
trunk/src/VBox/Runtime/testcase/tstLdrObjR0.cpp
r41674 r41675 96 96 97 97 memset(&Cpu, 0, sizeof(Cpu)); 98 Cpu.mode = CPUMODE_32BIT;98 Cpu.mode = DISCPUMODE_32BIT; 99 99 100 DISInstr((void *)(uintptr_t)SomeExportFunction3, CPUMODE_32BIT, &Cpu, &cb);100 DISInstr((void *)(uintptr_t)SomeExportFunction3, DISCPUMODE_32BIT, &Cpu, &cb); 101 101 return (void *)(uintptr_t)&SomeExportFunction1; 102 102 }
Note:
See TracChangeset
for help on using the changeset viewer.