Changeset 99210 in vbox for trunk/src/VBox/VMM
- Timestamp:
- Mar 29, 2023 2:18:33 PM (23 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR3/DBGFDisas.cpp
r98972 r99210 61 61 { 62 62 /** The core structure. */ 63 DIS CPUSTATE Cpu;63 DISSTATE Dis; 64 64 /** The cross context VM structure. */ 65 65 PVM pVM; … … 155 155 enmCpuMode, 156 156 dbgfR3DisasInstrRead, 157 &pState-> Cpu,158 &pState-> Cpu,157 &pState->Dis, 158 &pState->Dis, 159 159 &cbInstr); 160 160 if (RT_SUCCESS(rc)) … … 216 216 * DBGFDISASSTATE::GCPtrSegBase. 217 217 */ 218 static DECLCALLBACK(int) dbgfR3DisasInstrRead(PDIS CPUSTATE pDis, uint8_t offInstr, uint8_t cbMinRead, uint8_t cbMaxRead)218 static DECLCALLBACK(int) dbgfR3DisasInstrRead(PDISSTATE pDis, uint8_t offInstr, uint8_t cbMinRead, uint8_t cbMaxRead) 219 219 { 220 220 PDBGFDISASSTATE pState = (PDBGFDISASSTATE)pDis; … … 287 287 * @callback_method_impl{FNDISGETSYMBOL} 288 288 */ 289 static DECLCALLBACK(int) dbgfR3DisasGetSymbol(PCDIS CPUSTATE pDis, uint32_t u32Sel, RTUINTPTR uAddress,289 static DECLCALLBACK(int) dbgfR3DisasGetSymbol(PCDISSTATE pDis, uint32_t u32Sel, RTUINTPTR uAddress, 290 290 char *pszBuf, size_t cchBuf, RTINTPTR *poff, void *pvUser) 291 291 { … … 304 304 rc = DBGFR3AddrFromSelInfoOff(pState->pVM->pUVM, &Addr, pSelInfo, uAddress); 305 305 /* In long mode everything but FS and GS is easy. */ 306 else if ( pState-> Cpu.uCpuMode == DISCPUMODE_64BIT306 else if ( pState->Dis.uCpuMode == DISCPUMODE_64BIT 307 307 && DIS_FMT_SEL_IS_REG(u32Sel) 308 308 && DIS_FMT_SEL_GET_REG(u32Sel) != DISSELREG_GS … … 520 520 if (RT_FAILURE(rc)) 521 521 { 522 if (State. Cpu.cbCachedInstr)523 RTStrPrintf(pszOutput, cbOutput, "Disas -> %Rrc; %.*Rhxs\n", rc, (size_t)State. Cpu.cbCachedInstr, State.Cpu.abInstr);522 if (State.Dis.cbCachedInstr) 523 RTStrPrintf(pszOutput, cbOutput, "Disas -> %Rrc; %.*Rhxs\n", rc, (size_t)State.Dis.cbCachedInstr, State.Dis.abInstr); 524 524 else 525 525 RTStrPrintf(pszOutput, cbOutput, "Disas -> %Rrc\n", rc); … … 531 531 */ 532 532 char szBuf[512]; 533 DISFormatYasmEx(&State. Cpu, szBuf, sizeof(szBuf),533 DISFormatYasmEx(&State.Dis, szBuf, sizeof(szBuf), 534 534 DIS_FMT_FLAGS_RELATIVE_BRANCH, 535 535 fFlags & DBGF_DISAS_FLAGS_NO_SYMBOLS ? NULL : dbgfR3DisasGetSymbol, … … 563 563 else 564 564 { 565 uint32_t cbInstr = State. Cpu.cbInstr;566 uint8_t const *pabInstr = State. Cpu.abInstr;565 uint32_t cbInstr = State.Dis.cbInstr; 566 uint8_t const *pabInstr = State.Dis.abInstr; 567 567 if (fFlags & DBGF_DISAS_FLAGS_NO_ADDRESS) 568 568 cch = RTStrPrintf(pszOutput, cbOutput, "%.*Rhxs%*s %s", … … 603 603 604 604 if (pcbInstr) 605 *pcbInstr = State. Cpu.cbInstr;605 *pcbInstr = State.Dis.cbInstr; 606 606 607 607 if (pDisState) 608 608 { 609 pDisState->pCurInstr = State. Cpu.pCurInstr;610 pDisState->cbInstr = State. Cpu.cbInstr;611 pDisState->Param1 = State. Cpu.Param1;612 pDisState->Param2 = State. Cpu.Param2;613 pDisState->Param3 = State. Cpu.Param3;614 pDisState->Param4 = State. Cpu.Param4;609 pDisState->pCurInstr = State.Dis.pCurInstr; 610 pDisState->cbInstr = State.Dis.cbInstr; 611 pDisState->Param1 = State.Dis.Param1; 612 pDisState->Param2 = State.Dis.Param2; 613 pDisState->Param3 = State.Dis.Param3; 614 pDisState->Param4 = State.Dis.Param4; 615 615 } 616 616
Note:
See TracChangeset
for help on using the changeset viewer.