Changeset 41671 in vbox for trunk/src/VBox/Runtime
- Timestamp:
- Jun 12, 2012 3:22:43 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/testcase/tstLdr-2.cpp
r41658 r41671 39 39 40 40 41 bool MyDisBlock( PDISCPUSTATE pCpu, RTHCUINTPTR pvCodeBlock, int32_t cbMax, RTUINTPTR off)41 bool MyDisBlock(uint8_t const *pbCodeBlock, int32_t cbMax) 42 42 { 43 DISCPUSTATE Cpu; 43 44 int32_t i = 0; 44 45 while (i < cbMax) … … 46 47 char szOutput[256]; 47 48 uint32_t cbInstr; 48 if (RT_FAILURE(DISInstr WithOff(pCpu, pvCodeBlock + i, off, &cbInstr, szOutput)))49 if (RT_FAILURE(DISInstrToStr(pbCodeBlock + i, CPUMODE_32BIT, &Cpu, &cbInstr, szOutput, sizeof(szOutput)))) 49 50 return false; 50 51 … … 118 119 if (off < cb) 119 120 { 120 DISCPUSTATE Cpu; 121 122 memset(&Cpu, 0, sizeof(Cpu)); 123 Cpu.mode = CPUMODE_32BIT; 124 if (MyDisBlock(&Cpu, (uintptr_t)pvBits + off, 200, Addr - (uintptr_t)pvBits)) 121 if (MyDisBlock((uint8_t *)pvBits + off, Addr - (uintptr_t)pvBits)) 125 122 { 126 123 RTUINTPTR Addr2 = 0xd0000000; … … 128 125 if (RT_SUCCESS(rc)) 129 126 { 130 if (MyDisBlock( &Cpu, (uintptr_t)pvBits + off, 200, Addr2 - (uintptr_t)pvBits))127 if (MyDisBlock((uint8_t *)pvBits + off, Addr2 - (uintptr_t)pvBits)) 131 128 rcRet = 0; 132 129 else
Note:
See TracChangeset
for help on using the changeset viewer.