VirtualBox

Ignore:
Timestamp:
Mar 29, 2023 2:13:56 PM (21 months ago)
Author:
vboxsync
Message:

Disassembler,VMM,Runtime: Get rid of deprecated DISCPUSTATE types (preparation for architecture specific separation in order to support ARMv8), bugref:10394

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/testcase/tstLdr-3.cpp

    r98103 r99208  
    137137}
    138138
    139 static DECLCALLBACK(int) MyGetSymbol(PCDISCPUSTATE pCpu, uint32_t u32Sel, RTUINTPTR uAddress,
     139static DECLCALLBACK(int) MyGetSymbol(PCDISSTATE pDis, uint32_t u32Sel, RTUINTPTR uAddress,
    140140                                     char *pszBuf, size_t cchBuf, RTINTPTR *poff,
    141141                                     void *pvUser)
    142142{
    143     RT_NOREF3(pCpu, u32Sel, pvUser);
     143    RT_NOREF3(pDis, u32Sel, pvUser);
    144144
    145145    if (   uAddress > RTLdrSize(g_hLdrMod) + g_uLoadAddr
     
    161161 * @callback_method_impl{FNDISREADBYTES}
    162162 */
    163 static DECLCALLBACK(int) MyReadBytes(PDISCPUSTATE pDis, uint8_t offInstr, uint8_t cbMinRead, uint8_t cbMaxRead)
     163static DECLCALLBACK(int) MyReadBytes(PDISSTATE pDis, uint8_t offInstr, uint8_t cbMinRead, uint8_t cbMaxRead)
    164164{
    165165    RT_NOREF1(cbMaxRead);
     
    174174                       RTUINTPTR uNearAddr, RTUINTPTR uSearchAddr)
    175175{
    176     DISCPUSTATE Cpu;
    177     int32_t     i = 0;
     176    DISSTATE Dis;
     177    int32_t  i = 0;
    178178    while (i < cbMax)
    179179    {
     
    184184        int rc = DISInstrWithReader(uNearAddr + i, enmCpuMode,
    185185                                    MyReadBytes, (uint8_t *)pvCodeBlock - (uintptr_t)uNearAddr,
    186                                     &Cpu, &cbInstr);
     186                                    &Dis, &cbInstr);
    187187        RTAssertSetMayPanic(fMayPanic);
    188188        RTAssertSetQuiet(fQuiet);
     
    195195            RTPrintf("%s:\n", NearSym.aSyms[0].szName);
    196196
    197         DISFormatYasmEx(&Cpu, szOutput, sizeof(szOutput),
     197        DISFormatYasmEx(&Dis, szOutput, sizeof(szOutput),
    198198                        DIS_FMT_FLAGS_RELATIVE_BRANCH | DIS_FMT_FLAGS_BYTES_RIGHT | DIS_FMT_FLAGS_ADDR_LEFT  | DIS_FMT_FLAGS_BYTES_SPACED,
    199199                        MyGetSymbol, NULL);
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