Lines Matching defs:pDbgc

217     PDBGC pDbgc = (PDBGC)pvArg;
220 int rc = pDbgc->pBack->pfnWrite(pDbgc->pBack, pachChars, cbChars, NULL);
222 pDbgc->chLastOutput = pachChars[cbChars - 1];
225 pDbgc->rcOutput = rc;
240 PDBGC pDbgc = DBGC_CMDHLP2DBGC(pCmdHlp);
245 pDbgc->rcOutput = 0;
246 size_t cb = RTStrFormatV(dbgcFormatOutput, pDbgc, dbgcStringFormatter, pDbgc, pszFormat, args);
251 return pDbgc->rcOutput;
261 PDBGC pDbgc = DBGC_CMDHLP2DBGC(pCmdHlp);
262 return RTStrPrintfExV(dbgcStringFormatter, pDbgc, pszBuf, cbBuf, pszFormat, va);
271 PDBGC pDbgc = DBGC_CMDHLP2DBGC(pCmdHlp);
274 size_t cch = RTStrPrintfExV(dbgcStringFormatter, pDbgc, pszBuf, cbBuf, pszFormat, va);
320 PDBGC pDbgc = DBGC_CMDHLP2DBGC(pCmdHlp);
343 Assert(pDbgc->pUVM);
344 rc = DBGFR3AddrFromSelOff(pDbgc->pUVM, pDbgc->idCpu, &Address, Var.u.GCFar.sel, Var.u.GCFar.off);
352 rc = DBGFR3SelQueryInfo(pDbgc->pUVM, pDbgc->idCpu, Address.Sel,
421 rc = DBGFR3MemRead(pDbgc->pUVM, pDbgc->idCpu,
422 DBGFR3AddrFromFlat(pDbgc->pUVM, &Address, Var.u.GCFlat),
427 rc = DBGFR3MemRead(pDbgc->pUVM, pDbgc->idCpu,
428 DBGFR3AddrFromPhys(pDbgc->pUVM, &Address, Var.u.GCPhys),
436 rc = dbgcOpAddrFlat(pDbgc, &Var, DBGCVAR_CAT_ANY, &Var2);
492 PDBGC pDbgc = DBGC_CMDHLP2DBGC(pCmdHlp);
516 Assert(pDbgc->pUVM);
517 rc = DBGFR3AddrFromSelOff(pDbgc->pUVM, pDbgc->idCpu, &Address, Var.u.GCFar.sel, Var.u.GCFar.off);
525 rc = DBGFR3SelQueryInfo(pDbgc->pUVM, pDbgc->idCpu, Address.Sel,
558 rc = DBGFR3MemWrite(pDbgc->pUVM, pDbgc->idCpu,
559 DBGFR3AddrFromFlat(pDbgc->pUVM, &Address, Var.u.GCFlat),
566 rc = DBGFR3MemWrite(pDbgc->pUVM, pDbgc->idCpu,
567 DBGFR3AddrFromPhys(pDbgc->pUVM, &Address, Var.u.GCPhys),
585 rc = dbgcOpAddrFlat(pDbgc, &Var, DBGCVAR_CAT_ANY, &Var2);
627 PDBGC pDbgc = DBGC_CMDHLP2DBGC(pCmdHlp);
629 char *pszScratch = pDbgc->pszScratch;
630 unsigned iArg = pDbgc->iArg;
637 size_t cbScratch = sizeof(pDbgc->achScratch) - (pDbgc->pszScratch - &pDbgc->achScratch[0]);
638 size_t cb = RTStrPrintfExV(dbgcStringFormatter, pDbgc, pDbgc->pszScratch, cbScratch, pszExpr, args);
647 pDbgc->pszScratch = pDbgc->pszScratch + cb + 1;
648 int rc = dbgcEvalCommand(pDbgc, pszScratch, cb, false /* fNoExecute */);
651 pDbgc->iArg = iArg;
652 pDbgc->pszScratch = pszScratch;
663 PDBGC pDbgc = DBGC_CMDHLP2DBGC(pCmdHlp);
669 size_t cb = RTStrPrintfExV(dbgcStringFormatter, pDbgc, szExprFormatted, sizeof(szExprFormatted), pszExpr, va);
672 return dbgcEvalSub(pDbgc, &szExprFormatted[0], cb, DBGCVAR_CAT_ANY, pResult);
681 PDBGC pDbgc = DBGC_CMDHLP2DBGC(pCmdHlp);
686 pDbgc->rcOutput = VINF_SUCCESS;
687 RTStrFormat(dbgcFormatOutput, pDbgc, dbgcStringFormatter, pDbgc, "%s: error: ", pCmd->pszCmd);
688 if (RT_FAILURE(pDbgc->rcOutput))
689 return pDbgc->rcOutput;
690 RTStrFormatV(dbgcFormatOutput, pDbgc, dbgcStringFormatter, pDbgc, pszFormat, va);
691 if (RT_FAILURE(pDbgc->rcOutput))
692 return pDbgc->rcOutput;
693 if (pDbgc->chLastOutput != '\n')
694 dbgcFormatOutput(pDbgc, "\n", 1);
704 PDBGC pDbgc = DBGC_CMDHLP2DBGC(pCmdHlp);
709 pDbgc->rcOutput = VINF_SUCCESS;
710 RTStrFormat(dbgcFormatOutput, pDbgc, dbgcStringFormatter, pDbgc, "%s: error: ", pCmd->pszCmd);
711 if (RT_FAILURE(pDbgc->rcOutput))
712 return pDbgc->rcOutput;
713 RTStrFormatV(dbgcFormatOutput, pDbgc, dbgcStringFormatter, pDbgc, pszFormat, va);
714 if (RT_FAILURE(pDbgc->rcOutput))
715 return pDbgc->rcOutput;
716 RTStrFormat(dbgcFormatOutput, pDbgc, dbgcStringFormatter, pDbgc, ": %Rrc\n", rc);
717 if (RT_FAILURE(pDbgc->rcOutput))
718 return pDbgc->rcOutput;
729 PDBGC pDbgc = DBGC_CMDHLP2DBGC(pCmdHlp);
734 pDbgc->rcOutput = VINF_SUCCESS;
735 RTStrFormat(dbgcFormatOutput, pDbgc, dbgcStringFormatter, pDbgc, "%s: parser error: iArg=%d iLine=%u pszExpr=%s\n",
737 if (RT_FAILURE(pDbgc->rcOutput))
738 return pDbgc->rcOutput;
748 PDBGC pDbgc = DBGC_CMDHLP2DBGC(pCmdHlp);
755 DBGFR3AddrFromFlat(pDbgc->pUVM, pAddress, pVar->u.GCFlat);
759 DBGFR3AddrFromFlat(pDbgc->pUVM, pAddress, (RTGCUINTPTR)pVar->u.u64Number);
763 return DBGFR3AddrFromSelOff(pDbgc->pUVM, pDbgc->idCpu, pAddress, pVar->u.GCFar.sel, pVar->u.GCFar.off);
766 DBGFR3AddrFromPhys(pDbgc->pUVM, pAddress, pVar->u.GCPhys);
772 int rc = DBGCCmdHlpEval(&pDbgc->CmdHlp, &Var, "%%(%DV)", pVar);
827 PDBGC pDbgc = DBGC_CMDHLP2DBGC(pCmdHlp);
828 NOREF(pDbgc);
868 PDBGC pDbgc = DBGC_CMDHLP2DBGC(pCmdHlp);
869 NOREF(pDbgc);
938 PDBGC pDbgc = DBGC_CMDHLP2DBGC(pCmdHlp);
944 Assert(pDbgc->pUVM);
960 rc = DBGFR3AddrToPhys(pDbgc->pUVM, pDbgc->idCpu,
961 DBGFR3AddrFromFlat(pDbgc->pUVM, &Address, pArg->u.GCFlat),
969 rc = DBGFR3AddrToVolatileR3Ptr(pDbgc->pUVM, pDbgc->idCpu,
970 DBGFR3AddrFromFlat(pDbgc->pUVM, &Address, pArg->u.GCFlat),
979 rc = DBGFR3AddrToHostPhys(pDbgc->pUVM, pDbgc->idCpu,
980 DBGFR3AddrFromFlat(pDbgc->pUVM, &Address, pArg->u.GCFlat),
1005 rc = DBGFR3AddrFromSelOff(pDbgc->pUVM, pDbgc->idCpu, &Address, pArg->u.GCFar.sel, pArg->u.GCFar.off);
1018 rc = DBGFR3AddrFromSelOff(pDbgc->pUVM, pDbgc->idCpu, &Address, pArg->u.GCFar.sel, pArg->u.GCFar.off);
1022 rc = DBGFR3AddrToPhys(pDbgc->pUVM, pDbgc->idCpu, &Address, &pResult->u.GCPhys);
1029 rc = DBGFR3AddrFromSelOff(pDbgc->pUVM, pDbgc->idCpu, &Address, pArg->u.GCFar.sel, pArg->u.GCFar.off);
1033 rc = DBGFR3AddrToVolatileR3Ptr(pDbgc->pUVM, pDbgc->idCpu, &Address,
1041 rc = DBGFR3AddrFromSelOff(pDbgc->pUVM, pDbgc->idCpu, &Address, pArg->u.GCFar.sel, pArg->u.GCFar.off);
1045 rc = DBGFR3AddrToHostPhys(pDbgc->pUVM, pDbgc->idCpu, &Address, &pResult->u.GCPhys);
1070 //rc = MMR3PhysGCPhys2GCVirtEx(pDbgc->pVM, pResult->u.GCPhys, ..., &pResult->u.GCFlat); - yea, sure.
1081 rc = DBGFR3AddrToVolatileR3Ptr(pDbgc->pUVM, pDbgc->idCpu,
1082 DBGFR3AddrFromPhys(pDbgc->pUVM, &Address, pArg->u.GCPhys),
1091 rc = DBGFR3AddrToHostPhys(pDbgc->pUVM, pDbgc->idCpu,
1092 DBGFR3AddrFromPhys(pDbgc->pUVM, &Address, pArg->u.GCPhys),
1124 rc = PGMR3DbgR3Ptr2GCPhys(pDbgc->pUVM, pArg->u.pvHCFlat, &pResult->u.GCPhys);
1135 rc = PGMR3DbgR3Ptr2HCPhys(pDbgc->pUVM, pArg->u.pvHCFlat, &pResult->u.HCPhys);
1167 rc = PGMR3DbgHCPhys2GCPhys(pDbgc->pUVM, pArg->u.HCPhys, &pResult->u.GCPhys);
1244 rc = dbgcSymbolGet(pDbgc, InVar.u.pszString, enmToType, pResult);
1276 PDBGC pDbgc = RT_FROM_MEMBER(pHlp, DBGC, DbgfOutputHlp);
1279 pDbgc->CmdHlp.pfnPrintfV(&pDbgc->CmdHlp, NULL, pszFormat, va);
1289 PDBGC pDbgc = RT_FROM_MEMBER(pHlp, DBGC, DbgfOutputHlp);
1290 pDbgc->CmdHlp.pfnPrintfV(&pDbgc->CmdHlp, NULL, pszFormat, args);
1299 PDBGC pDbgc = DBGC_CMDHLP2DBGC(pCmdHlp);
1302 if (!pDbgc->DbgfOutputHlp.pfnPrintf)
1304 pDbgc->DbgfOutputHlp.pfnPrintf = dbgcHlpGetDbgfOutputHlp_Printf;
1305 pDbgc->DbgfOutputHlp.pfnPrintfV = dbgcHlpGetDbgfOutputHlp_PrintfV;
1308 return &pDbgc->DbgfOutputHlp;
1317 PDBGC pDbgc = DBGC_CMDHLP2DBGC(pCmdHlp);
1318 return pDbgc->idCpu;
1327 PDBGC pDbgc = DBGC_CMDHLP2DBGC(pCmdHlp);
1329 if (pDbgc->fRegCtxGuest)
1331 if (pDbgc->pUVM)
1332 enmMode = DBGFR3CpuGetMode(pDbgc->pUVM, DBGCCmdHlpGetCurrentCpu(pCmdHlp));
1349 * @param pDbgc Pointer to the DBGC instance.
1351 void dbgcInitCmdHlp(PDBGC pDbgc)
1353 pDbgc->CmdHlp.u32Magic = DBGCCMDHLP_MAGIC;
1354 pDbgc->CmdHlp.pfnPrintfV = dbgcHlpPrintfV;
1355 pDbgc->CmdHlp.pfnPrintf = dbgcHlpPrintf;
1356 pDbgc->CmdHlp.pfnStrPrintf = dbgcHlpStrPrintf;
1357 pDbgc->CmdHlp.pfnStrPrintfV = dbgcHlpStrPrintfV;
1358 pDbgc->CmdHlp.pfnVBoxErrorV = dbgcHlpVBoxErrorV;
1359 pDbgc->CmdHlp.pfnVBoxError = dbgcHlpVBoxError;
1360 pDbgc->CmdHlp.pfnMemRead = dbgcHlpMemRead;
1361 pDbgc->CmdHlp.pfnMemWrite = dbgcHlpMemWrite;
1362 pDbgc->CmdHlp.pfnEvalV = dbgcHlpEvalV;
1363 pDbgc->CmdHlp.pfnExec = dbgcHlpExec;
1364 pDbgc->CmdHlp.pfnFailV = dbgcHlpFailV;
1365 pDbgc->CmdHlp.pfnFailRcV = dbgcHlpFailRcV;
1366 pDbgc->CmdHlp.pfnParserError = dbgcHlpParserError;
1367 pDbgc->CmdHlp.pfnVarToDbgfAddr = dbgcHlpVarToDbgfAddr;
1368 pDbgc->CmdHlp.pfnVarFromDbgfAddr = dbgcHlpVarFromDbgfAddr;
1369 pDbgc->CmdHlp.pfnVarToNumber = dbgcHlpVarToNumber;
1370 pDbgc->CmdHlp.pfnVarToBool = dbgcHlpVarToBool;
1371 pDbgc->CmdHlp.pfnVarGetRange = dbgcHlpVarGetRange;
1372 pDbgc->CmdHlp.pfnVarConvert = dbgcHlpVarConvert;
1373 pDbgc->CmdHlp.pfnGetDbgfOutputHlp = dbgcHlpGetDbgfOutputHlp;
1374 pDbgc->CmdHlp.pfnGetCurrentCpu = dbgcHlpGetCurrentCpu;
1375 pDbgc->CmdHlp.pfnGetCpuMode = dbgcHlpGetCpuMode;
1376 pDbgc->CmdHlp.u32EndMarker = DBGCCMDHLP_MAGIC;