VirtualBox

Ignore:
Timestamp:
Jun 16, 2012 8:33:45 PM (12 years ago)
Author:
vboxsync
Message:

DISCPUSTATE -> DISSTATE (slow change).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Disassembler/testcase/tstDisasm-1.cpp

    r41781 r41790  
    4343        uint32_t const  cErrBefore = RTTestIErrorCount();
    4444        uint32_t        cb = 1;
    45         DISCPUSTATE     Cpu;
     45        DISSTATE        Dis;
    4646        char            szOutput[256] = {0};
    47         int rc = DISInstrToStr(&pabInstrs[off], enmDisCpuMode, &Cpu, &cb, szOutput, sizeof(szOutput));
     47        int rc = DISInstrToStr(&pabInstrs[off], enmDisCpuMode, &Dis, &cb, szOutput, sizeof(szOutput));
    4848
    4949        RTTESTI_CHECK_RC(rc, VINF_SUCCESS);
    50         RTTESTI_CHECK(cb == Cpu.cbInstr);
     50        RTTESTI_CHECK(cb == Dis.cbInstr);
    5151        RTTESTI_CHECK(cb > 0);
    5252        RTTESTI_CHECK(cb <= 16);
     
    7070        if (cErrBefore != RTTestIErrorCount())
    7171            RTTestIFailureDetails("rc=%Rrc, off=%#x (%u) cbInstr=%u enmDisCpuMode=%d\n",
    72                                   rc, off, Cpu.cbInstr, enmDisCpuMode);
     72                                  rc, off, Dis.cbInstr, enmDisCpuMode);
    7373        RTTestIPrintf(RTTESTLVL_ALWAYS, "%s\n", szOutput);
    7474        off += cb;
     
    8787        for (size_t off = 0; off < cbInstrs; cInstrs++)
    8888        {
    89             uint32_t        cb = 1;
    90             DISCPUSTATE     Cpu;
    91             DISInstr(&pabInstrs[off], enmDisCpuMode, &Cpu, &cb);
     89            uint32_t    cb = 1;
     90            DISSTATE    Dis;
     91            DISInstr(&pabInstrs[off], enmDisCpuMode, &Dis, &cb);
    9292            off += cb;
    9393        }
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette