Changeset 104612 in vbox
- Timestamp:
- May 13, 2024 4:10:11 PM (12 months ago)
- svn:sync-xref-src-repo-rev:
- 163154
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Debugger/DBGCRemoteKd.cpp
r103433 r104612 2866 2866 if (RT_SUCCESS(rc)) 2867 2867 rc = DBGFR3RegCpuQueryU16(pThis->Dbgc.pUVM, pThis->Dbgc.idCpu, DBGFREG_FS, &StateChange64.uCtrlReport.Amd64.u16SegFs); 2868 2869 /* Read instruction bytes. */2870 StateChange64.uCtrlReport.Amd64.cbInsnStream = sizeof(StateChange64.uCtrlReport.Amd64.abInsn);2871 rc = DBGFR3MemRead(pThis->Dbgc.pUVM, pThis->Dbgc.idCpu, &AddrRip,2872 &StateChange64.uCtrlReport.Amd64.abInsn[0], StateChange64.uCtrlReport.Amd64.cbInsnStream);2873 2868 if (RT_SUCCESS(rc)) 2874 2869 { 2875 pThis->idPktNext = KD_PACKET_HDR_ID_INITIAL; 2876 rc = dbgcKdCtxPktSend(pThis, KD_PACKET_HDR_SIGNATURE_DATA, KD_PACKET_HDR_SUB_TYPE_STATE_CHANGE64, 2877 &StateChange64, sizeof(StateChange64), false /*fAck*/); 2870 /* Read instruction bytes. */ 2871 StateChange64.uCtrlReport.Amd64.cbInsnStream = sizeof(StateChange64.uCtrlReport.Amd64.abInsn); 2872 rc = DBGFR3MemRead(pThis->Dbgc.pUVM, pThis->Dbgc.idCpu, &AddrRip, 2873 &StateChange64.uCtrlReport.Amd64.abInsn[0], StateChange64.uCtrlReport.Amd64.cbInsnStream); 2874 if (RT_SUCCESS(rc)) 2875 { 2876 pThis->idPktNext = KD_PACKET_HDR_ID_INITIAL; 2877 rc = dbgcKdCtxPktSend(pThis, KD_PACKET_HDR_SIGNATURE_DATA, KD_PACKET_HDR_SUB_TYPE_STATE_CHANGE64, 2878 &StateChange64, sizeof(StateChange64), false /*fAck*/); 2879 } 2878 2880 } 2879 2881 } … … 2914 2916 &Resp.u.GetVersion.u64PtrKernBase, 2915 2917 &Resp.u.GetVersion.u64PtrPsLoadedModuleList); 2918 if (RT_FAILURE(rc)) 2919 LogRel(("DBGC/Kd: Failed to query WIndows version or kernel pointers rc=%Rrc\n", rc)); 2916 2920 } 2917 2921 … … 4115 4119 } 4116 4120 4117 rc = dbgcKdCtxStateChangeSend(pThis, pEvent->enmType); 4121 if (RT_SUCCESS(rc)) 4122 rc = dbgcKdCtxStateChangeSend(pThis, pEvent->enmType); 4118 4123 break; 4119 4124 } … … 4214 4219 else 4215 4220 rc = pDbgc->CmdHlp.pfnPrintf(&pDbgc->CmdHlp, NULL, "\ndbgf event: %s!", pEvtDesc->pszName); 4216 if (pEvent->u.Generic.cArgs <= 1) 4217 rc = pDbgc->CmdHlp.pfnPrintf(&pDbgc->CmdHlp, NULL, " arg=%#llx\n", pEvent->u.Generic.auArgs[0]); 4218 else 4221 if (RT_SUCCESS(rc)) 4219 4222 { 4220 for (uint32_t i = 0; i < pEvent->u.Generic.cArgs; i++) 4221 rc = pDbgc->CmdHlp.pfnPrintf(&pDbgc->CmdHlp, NULL, " args[%u]=%#llx", i, pEvent->u.Generic.auArgs[i]); 4222 rc = pDbgc->CmdHlp.pfnPrintf(&pDbgc->CmdHlp, NULL, "\n"); 4223 if (pEvent->u.Generic.cArgs <= 1) 4224 rc = pDbgc->CmdHlp.pfnPrintf(&pDbgc->CmdHlp, NULL, " arg=%#llx\n", pEvent->u.Generic.auArgs[0]); 4225 else 4226 { 4227 for (uint32_t i = 0; i < pEvent->u.Generic.cArgs; i++) 4228 rc = pDbgc->CmdHlp.pfnPrintf(&pDbgc->CmdHlp, NULL, " args[%u]=%#llx", i, pEvent->u.Generic.auArgs[i]); 4229 if (RT_SUCCESS(rc)) 4230 rc = pDbgc->CmdHlp.pfnPrintf(&pDbgc->CmdHlp, NULL, "\n"); 4231 } 4223 4232 } 4224 4233 }
Note:
See TracChangeset
for help on using the changeset viewer.