Changeset 41874 in vbox for trunk/src/VBox/Disassembler/testcase/tstDisasm-2.cpp
- Timestamp:
- Jun 22, 2012 12:14:56 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Disassembler/testcase/tstDisasm-2.cpp
r41863 r41874 357 357 if (uHighlightAddr - State.uAddress < State.cbInstr) 358 358 RTPrintf("; ^^^^^^^^^^^^^^^^^^^^^\n"); 359 360 /* Check that the size-only mode returns the smae size on success. */ 361 if (RT_SUCCESS(rc)) 362 { 363 uint32_t cbInstrOnly = 32; 364 uint8_t abInstr[sizeof(State.Dis.abInstr)]; 365 memcpy(abInstr, State.Dis.abInstr, sizeof(State.Dis.abInstr)); 366 int rcOnly = DISInstWithPrefetchedBytes(State.uAddress, enmCpuMode, 0 /*fFilter - none */, 367 abInstr, State.Dis.cbCachedInstr, MyDisasInstrRead, &State, 368 &State.Dis, &cbInstrOnly); 369 if ( rcOnly != rc 370 || cbInstrOnly != State.cbInstr) 371 { 372 RTPrintf("; Instruction size only check failed rc=%Rrc cbInstrOnly=%#x exepcted %Rrc and %#x\n", 373 rcOnly, cbInstrOnly, rc, State.cbInstr); 374 rcRet = VERR_GENERAL_FAILURE; 375 break; 376 } 377 } 359 378 360 379 /* next */
Note:
See TracChangeset
for help on using the changeset viewer.