Changeset 103433 in vbox for trunk/src/VBox/Debugger
- Timestamp:
- Feb 19, 2024 12:11:34 PM (12 months ago)
- svn:sync-xref-src-repo-rev:
- 161760
- Location:
- trunk/src/VBox/Debugger
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Debugger/DBGCCommands.cpp
r98103 r103433 1313 1313 "none", "bytes", "elements" 1314 1314 }; 1315 int rc ;1315 int rc = VINF_SUCCESS; 1316 1316 1317 1317 for (unsigned iArg = 0; iArg < cArgs; iArg++) … … 1426 1426 1427 1427 NOREF(pCmd); NOREF(pUVM); 1428 return 0;1428 return rc; 1429 1429 } 1430 1430 -
trunk/src/VBox/Debugger/DBGCEmulateCodeView.cpp
r103422 r103433 1591 1591 if (pszErr) 1592 1592 { 1593 uint32_t cchErr = (uint32_t)strlen(pszErr); 1594 1593 1595 pDumpBb->cchHeight++; 1594 pDumpBb->cchWidth = RT_MAX(pDumpBb->cchWidth, (uint32_t)strlen(pszErr));1596 pDumpBb->cchWidth = RT_MAX(pDumpBb->cchWidth, cchErr); 1595 1597 } 1596 1598 } … … 1600 1602 int rc = DBGFR3FlowBbQueryInstr(hFlowBb, i, NULL, NULL, &pszInstr); 1601 1603 AssertRC(rc); 1602 pDumpBb->cchWidth = RT_MAX(pDumpBb->cchWidth, (uint32_t)strlen(pszInstr)); 1604 1605 uint32_t cchInstr = (uint32_t)strlen(pszInstr); 1606 pDumpBb->cchWidth = RT_MAX(pDumpBb->cchWidth, cchInstr); 1603 1607 } 1604 1608 pDumpBb->cchWidth += 4; /* Include spacing and border left and right. */ … … 1758 1762 * Fills in the dump states for the basic blocks and branch tables. 1759 1763 * 1760 * @returns VBox status code.1761 1764 * @param hFlowIt The control flow graph iterator handle. 1762 1765 * @param hFlowBranchTblIt The control flow graph branch table iterator handle. … … 1766 1769 * @param cBranchTbls Number of branch tables. 1767 1770 */ 1768 static intdbgcCmdUnassembleCfgDumpCalcDimensions(DBGFFLOWIT hFlowIt, DBGFFLOWBRANCHTBLIT hFlowBranchTblIt,1769 PDBGCFLOWBBDUMP paDumpBb, PDBGCFLOWBRANCHTBLDUMP paDumpBranchTbl,1770 uint32_t cBbs, uint32_t cBranchTbls)1771 static void dbgcCmdUnassembleCfgDumpCalcDimensions(DBGFFLOWIT hFlowIt, DBGFFLOWBRANCHTBLIT hFlowBranchTblIt, 1772 PDBGCFLOWBBDUMP paDumpBb, PDBGCFLOWBRANCHTBLDUMP paDumpBranchTbl, 1773 uint32_t cBbs, uint32_t cBranchTbls) 1771 1774 { 1772 1775 RT_NOREF2(cBbs, cBranchTbls); … … 1795 1798 } 1796 1799 } 1797 1798 return VINF_SUCCESS;1799 1800 } 1800 1801 … … 1829 1830 if (RT_SUCCESS(rc)) 1830 1831 { 1831 rc =dbgcCmdUnassembleCfgDumpCalcDimensions(hCfgIt, hFlowBranchTblIt, paDumpBb, paDumpBranchTbl,1832 1832 dbgcCmdUnassembleCfgDumpCalcDimensions(hCfgIt, hFlowBranchTblIt, paDumpBb, paDumpBranchTbl, 1833 cBbs, cBranchTbls); 1833 1834 1834 1835 /* Calculate the ASCII screen dimensions and create one. */ … … 2167 2168 } 2168 2169 2170 int rc; 2171 #if 0 /** @todo Unused right now. */ 2169 2172 /* 2170 2173 * Convert physical and host addresses to guest addresses. 2171 2174 */ 2172 2175 RTDBGAS hDbgAs = pDbgc->hDbgAs; 2173 int rc;2174 2176 switch (pDbgc->DisasmPos.enmType) 2175 2177 { … … 2192 2194 default: AssertFailed(); break; 2193 2195 } 2196 #endif 2194 2197 2195 2198 DBGFADDRESS CurAddr; … … 3163 3166 } 3164 3167 } 3165 return VINF_SUCCESS;3168 return rc; 3166 3169 } 3167 3170 … … 5067 5070 * @param cVars The number of variables. 5068 5071 */ 5069 int dbgcVarsToBytes(PDBGCCMDHLP pCmdHlp, void *pvBuf, uint32_t *pcbBuf, size_t cbUnit, PCDBGCVAR paVars, unsigned cVars)5072 static int dbgcVarsToBytes(PDBGCCMDHLP pCmdHlp, void *pvBuf, uint32_t *pcbBuf, size_t cbUnit, PCDBGCVAR paVars, unsigned cVars) 5070 5073 { 5071 5074 union … … 6644 6647 pDbgc->pLastPos = &pDbgc->DisasmPos; 6645 6648 6649 6650 int rc; 6651 #if 0 /** @todo unused right now */ 6646 6652 /* 6647 6653 * Convert physical and host addresses to guest addresses. 6648 6654 */ 6649 6655 RTDBGAS hDbgAs = pDbgc->hDbgAs; 6650 int rc;6651 6656 switch (pDbgc->DisasmPos.enmType) 6652 6657 { … … 6669 6674 default: AssertFailed(); break; 6670 6675 } 6676 #endif 6671 6677 6672 6678 DBGFADDRESS CurAddr; -
trunk/src/VBox/Debugger/DBGCEval.cpp
r98103 r103433 96 96 * @param pDbgc The DBGC instance. 97 97 */ 98 s ize_t dbgcGetFreeScratchSpace(PDBGC pDbgc)98 static size_t dbgcGetFreeScratchSpace(PDBGC pDbgc) 99 99 { 100 100 return sizeof(pDbgc->achScratch) - (pDbgc->pszScratch - &pDbgc->achScratch[0]); … … 109 109 * @param cbRequested The number of bytes to allocate. 110 110 */ 111 char *dbgcAllocStringScatch(PDBGC pDbgc, size_t cbRequested)111 static char *dbgcAllocStringScatch(PDBGC pDbgc, size_t cbRequested) 112 112 { 113 113 if (cbRequested > dbgcGetFreeScratchSpace(pDbgc)) … … 1091 1091 */ 1092 1092 PDBGCVAR pArg = &pDbgc->aArgs[pDbgc->iArg]; 1093 PCDBGCVARDESC pPrevDesc = NULL;1094 1093 unsigned cCurDesc = 0; 1095 unsigned iVar = 0;1096 1094 unsigned iVarDesc = 0; 1097 1095 *pcArgs = 0; … … 1263 1261 if (RT_SUCCESS(rc)) 1264 1262 { 1265 pArg->pDesc = pPrevDesc =&paVarDescs[iVarDesc];1263 pArg->pDesc = &paVarDescs[iVarDesc]; 1266 1264 cCurDesc++; 1267 1265 RTMemFree(pszArgsCopy); … … 1295 1293 * Next argument. 1296 1294 */ 1297 iVar++;1298 1295 pArg++; 1299 1296 pDbgc->iArg++; -
trunk/src/VBox/Debugger/DBGCGdbRemoteStub.cpp
r100108 r103433 1382 1382 if (RT_SUCCESS(rc)) 1383 1383 rc = dbgcGdbStubCtxReplySendData(pThis, &achReply[0], cchStr); 1384 if (RT_SUCCESS(rc)) 1385 rc = dbgcGdbStubCtxReplySendEnd(pThis); 1384 1386 pThis->idCpuNextThrdInfoQuery++; 1385 1387 } 1386 1387 rc = dbgcGdbStubCtxReplySendEnd(pThis);1388 1388 } 1389 1389 … … 1453 1453 return VERR_NET_PROTOCOL_ERROR; 1454 1454 1455 cbArgs--;1455 /*cbArgs--;*/ /* Not used */ 1456 1456 pbArgs++; 1457 1457 … … 1567 1567 1568 1568 pbArgs++; 1569 cbArgs--;1569 /*cbArgs--;*/ /* Not used */ 1570 1570 1571 1571 /** @todo For now we don't care about multiple threads and ignore thread IDs and multiple actions. */ … … 2419 2419 rc = pDbgc->CmdHlp.pfnExec(&pDbgc->CmdHlp, "r eflags.rf = 1"); 2420 2420 } 2421 2422 if (RT_FAILURE(rc)) 2423 pDbgc->CmdHlp.pfnPrintf(&pDbgc->CmdHlp, NULL, "Executing the breakpoint %u (%s) failed with %Rrc!\n", 2424 pEvent->u.Bp.hBp, dbgcGetEventCtx(pEvent->enmCtx), rc); 2421 2425 2422 2426 rc = dbgcGdbStubCtxReplySendSigTrap(pThis); … … 2552 2556 * @param pThis Pointer to the GDB stub context. 2553 2557 */ 2554 int dbgcGdbStubRun(PGDBSTUBCTX pThis)2558 static int dbgcGdbStubRun(PGDBSTUBCTX pThis) 2555 2559 { 2556 2560 /* Select the register set based on the CPU mode. */ -
trunk/src/VBox/Debugger/DBGCRemoteKd.cpp
r99739 r103433 4292 4292 * @param pThis Pointer to the KD context. 4293 4293 */ 4294 int dbgcKdRun(PKDCTX pThis)4294 static int dbgcKdRun(PKDCTX pThis) 4295 4295 { 4296 4296 /* … … 4346 4346 */ 4347 4347 if (pThis->Dbgc.pIo->pfnInput(pThis->Dbgc.pIo, 1000)) 4348 {4349 4348 rc = dbgcKdCtxRecv(pThis); 4350 if (RT_FAILURE(rc))4351 break;4352 }4353 4349 else if ( pThis->msRecvTimeout != RT_INDEFINITE_WAIT 4354 4350 && (RTTimeMilliTS() - pThis->tsRecvLast >= pThis->msRecvTimeout)) 4355 4351 rc = dbgcKdCtxRecvTimeout(pThis); 4352 4353 if (RT_FAILURE(rc)) 4354 break; 4356 4355 } 4357 4356 else
Note:
See TracChangeset
for help on using the changeset viewer.