Changeset 41737 in vbox for trunk/src/VBox/Disassembler/testcase
- Timestamp:
- Jun 15, 2012 1:01:49 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Disassembler/testcase/tstDisasm-2.cpp
r41733 r41737 132 132 static bool MyDisasIsValidInstruction(DISCPUSTATE const *pCpu) 133 133 { 134 switch (pCpu->pCurInstr-> opcode)134 switch (pCpu->pCurInstr->uOpcode) 135 135 { 136 136 /* These doesn't take memory operands. */ … … 338 338 State.fUndefOp = rc == VERR_DIS_INVALID_OPCODE 339 339 || rc == VERR_DIS_GEN_FAILURE 340 || State.Cpu.pCurInstr-> opcode == OP_INVALID341 || State.Cpu.pCurInstr-> opcode == OP_ILLUD2340 || State.Cpu.pCurInstr->uOpcode == OP_INVALID 341 || State.Cpu.pCurInstr->uOpcode == OP_ILLUD2 342 342 || ( State.enmUndefOp == kUndefOp_DefineByte 343 343 && !MyDisasIsValidInstruction(&State.Cpu)); … … 357 357 else if (!State.fUndefOp && State.enmUndefOp == kUndefOp_All) 358 358 { 359 RTPrintf("%s: error at %#RX64: unexpected valid instruction (op=%d)\n", argv0, State.uAddress, State.Cpu.pCurInstr-> opcode);359 RTPrintf("%s: error at %#RX64: unexpected valid instruction (op=%d)\n", argv0, State.uAddress, State.Cpu.pCurInstr->uOpcode); 360 360 pfnFormatter(&State); 361 361 rcRet = VERR_GENERAL_FAILURE; … … 363 363 else if (State.fUndefOp && State.enmUndefOp == kUndefOp_Fail) 364 364 { 365 RTPrintf("%s: error at %#RX64: undefined opcode (op=%d)\n", argv0, State.uAddress, State.Cpu.pCurInstr-> opcode);365 RTPrintf("%s: error at %#RX64: undefined opcode (op=%d)\n", argv0, State.uAddress, State.Cpu.pCurInstr->uOpcode); 366 366 pfnFormatter(&State); 367 367 rcRet = VERR_GENERAL_FAILURE;
Note:
See TracChangeset
for help on using the changeset viewer.