Changeset 46158 in vbox for trunk/src/VBox/Debugger/DBGCEmulateCodeView.cpp
- Timestamp:
- May 18, 2013 1:21:05 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Debugger/DBGCEmulateCodeView.cpp
r46156 r46158 1149 1149 int rc = DBGCCmdHlpEval(pCmdHlp, &pDbgc->SourcePos, "%%(%Dv)", &pDbgc->SourcePos); 1150 1150 if (RT_FAILURE(rc)) 1151 return pCmdHlp->pfnPrintf(pCmdHlp, NULL, "error: Invalid address or address type. (rc=%d)\n", rc);1151 return DBGCCmdHlpPrintf(pCmdHlp, "error: Invalid address or address type. (rc=%d)\n", rc); 1152 1152 break; 1153 1153 } … … 1167 1167 case DBGCVAR_RANGE_ELEMENTS: 1168 1168 if (pDbgc->SourcePos.u64Range > 2048) 1169 return pCmdHlp->pfnPrintf(pCmdHlp, NULL, "error: Too many lines requested. Max is 2048 lines.\n");1169 return DBGCCmdHlpPrintf(pCmdHlp, "error: Too many lines requested. Max is 2048 lines.\n"); 1170 1170 break; 1171 1171 1172 1172 case DBGCVAR_RANGE_BYTES: 1173 1173 if (pDbgc->SourcePos.u64Range > 65536) 1174 return pCmdHlp->pfnPrintf(pCmdHlp, NULL, "error: The requested range is too big. Max is 64KB.\n");1174 return DBGCCmdHlpPrintf(pCmdHlp, "error: The requested range is too big. Max is 64KB.\n"); 1175 1175 break; 1176 1176 1177 1177 default: 1178 return pCmdHlp->pfnPrintf(pCmdHlp, NULL, "internal error: Unknown range type %d.\n", pDbgc->SourcePos.enmRangeType);1178 return DBGCCmdHlpPrintf(pCmdHlp, "internal error: Unknown range type %d.\n", pDbgc->SourcePos.enmRangeType); 1179 1179 } 1180 1180 … … 1208 1208 if (fFirst) 1209 1209 { 1210 rc = pCmdHlp->pfnPrintf(pCmdHlp, NULL, "[%s @ %d]\n", Line.szFilename, Line.uLineNo);1210 rc = DBGCCmdHlpPrintf(pCmdHlp, "[%s @ %d]\n", Line.szFilename, Line.uLineNo); 1211 1211 if (RT_FAILURE(rc)) 1212 1212 return rc; … … 1243 1243 break; 1244 1244 1245 rc = pCmdHlp->pfnPrintf(pCmdHlp, NULL, " %4d: %s\n", Line.uLineNo - cBefore - 1, szLine);1245 rc = DBGCCmdHlpPrintf(pCmdHlp, " %4d: %s\n", Line.uLineNo - cBefore - 1, szLine); 1246 1246 szLine[0] = '\0'; 1247 1247 fgets(szLine, sizeof(szLine), phFile); … … 1249 1249 } 1250 1250 /* print the actual line */ 1251 rc = pCmdHlp->pfnPrintf(pCmdHlp, NULL, "%08llx %4d: %s\n", Line.Address, Line.uLineNo, szLine);1251 rc = DBGCCmdHlpPrintf(pCmdHlp, "%08llx %4d: %s\n", Line.Address, Line.uLineNo, szLine); 1252 1252 } 1253 1253 fclose(phFile); … … 1257 1257 } 1258 1258 else 1259 return pCmdHlp->pfnPrintf(pCmdHlp, NULL, "Warning: couldn't open source file '%s'\n", Line.szFilename);1259 return DBGCCmdHlpPrintf(pCmdHlp, "Warning: couldn't open source file '%s'\n", Line.szFilename); 1260 1260 1261 1261 LinePrev = Line; … … 1546 1546 PDBGC pDbgc = DBGC_CMDHLP2DBGC(pCmdHlp); 1547 1547 pDbgc->fRegTerse = !pDbgc->fRegTerse; 1548 return pCmdHlp->pfnPrintf(pCmdHlp, NULL, pDbgc->fRegTerse ? "info: Terse register info.\n" : "info: Verbose register info.\n");1548 return DBGCCmdHlpPrintf(pCmdHlp, pDbgc->fRegTerse ? "info: Terse register info.\n" : "info: Verbose register info.\n"); 1549 1549 } 1550 1550 … … 1584 1584 rc = DBGFR3StackWalkBegin(pUVM, pDbgc->idCpu, fGuest ? DBGFCODETYPE_GUEST : DBGFCODETYPE_HYPER, &pFirstFrame); 1585 1585 if (RT_FAILURE(rc)) 1586 return pCmdHlp->pfnPrintf(pCmdHlp, NULL, "Failed to begin stack walk, rc=%Rrc\n", rc);1586 return DBGCCmdHlpPrintf(pCmdHlp, "Failed to begin stack walk, rc=%Rrc\n", rc); 1587 1587 1588 1588 /* … … 1600 1600 if (fCurBitFlags != fBitFlags) 1601 1601 pCmdHlp->pfnPrintf(pCmdHlp, NULL, "SS:BP Ret SS:BP Ret CS:EIP Arg0 Arg1 Arg2 Arg3 CS:EIP / Symbol [line]\n"); 1602 rc = pCmdHlp->pfnPrintf(pCmdHlp, NULL, "%04RX16:%04RX16 %04RX16:%04RX16 %04RX32:%08RX32 %08RX32 %08RX32 %08RX32 %08RX32",1602 rc = DBGCCmdHlpPrintf(pCmdHlp, "%04RX16:%04RX16 %04RX16:%04RX16 %04RX32:%08RX32 %08RX32 %08RX32 %08RX32 %08RX32", 1603 1603 pFrame->AddrFrame.Sel, 1604 1604 (uint16_t)pFrame->AddrFrame.off, … … 1616 1616 if (fCurBitFlags != fBitFlags) 1617 1617 pCmdHlp->pfnPrintf(pCmdHlp, NULL, "EBP Ret EBP Ret CS:EIP Arg0 Arg1 Arg2 Arg3 CS:EIP / Symbol [line]\n"); 1618 rc = pCmdHlp->pfnPrintf(pCmdHlp, NULL, "%08RX32 %08RX32 %04RX32:%08RX32 %08RX32 %08RX32 %08RX32 %08RX32",1618 rc = DBGCCmdHlpPrintf(pCmdHlp, "%08RX32 %08RX32 %04RX32:%08RX32 %08RX32 %08RX32 %08RX32 %08RX32", 1619 1619 (uint32_t)pFrame->AddrFrame.off, 1620 1620 (uint32_t)pFrame->AddrReturnFrame.off, … … 1630 1630 if (fCurBitFlags != fBitFlags) 1631 1631 pCmdHlp->pfnPrintf(pCmdHlp, NULL, "RBP Ret SS:RBP Ret RIP CS:RIP / Symbol [line]\n"); 1632 rc = pCmdHlp->pfnPrintf(pCmdHlp, NULL, "%016RX64 %04RX16:%016RX64 %016RX64",1632 rc = DBGCCmdHlpPrintf(pCmdHlp, "%016RX64 %04RX16:%016RX64 %016RX64", 1633 1633 (uint64_t)pFrame->AddrFrame.off, 1634 1634 pFrame->AddrReturnFrame.Sel, … … 1650 1650 RTGCINTPTR offDisp = pFrame->AddrPC.FlatPtr - pFrame->pSymPC->Value; /** @todo this isn't 100% correct for segmented stuff. */ 1651 1651 if (offDisp > 0) 1652 rc = pCmdHlp->pfnPrintf(pCmdHlp, NULL, " %s+%llx", pFrame->pSymPC->szName, (int64_t)offDisp);1652 rc = DBGCCmdHlpPrintf(pCmdHlp, " %s+%llx", pFrame->pSymPC->szName, (int64_t)offDisp); 1653 1653 else if (offDisp < 0) 1654 rc = pCmdHlp->pfnPrintf(pCmdHlp, NULL, " %s-%llx", pFrame->pSymPC->szName, -(int64_t)offDisp);1654 rc = DBGCCmdHlpPrintf(pCmdHlp, " %s-%llx", pFrame->pSymPC->szName, -(int64_t)offDisp); 1655 1655 else 1656 rc = pCmdHlp->pfnPrintf(pCmdHlp, NULL, " %s", pFrame->pSymPC->szName);1656 rc = DBGCCmdHlpPrintf(pCmdHlp, " %s", pFrame->pSymPC->szName); 1657 1657 } 1658 1658 if (RT_SUCCESS(rc) && pFrame->pLinePC) 1659 rc = pCmdHlp->pfnPrintf(pCmdHlp, NULL, " [%s @ 0i%d]", pFrame->pLinePC->szFilename, pFrame->pLinePC->uLineNo);1659 rc = DBGCCmdHlpPrintf(pCmdHlp, " [%s @ 0i%d]", pFrame->pLinePC->szFilename, pFrame->pLinePC->uLineNo); 1660 1660 if (RT_SUCCESS(rc)) 1661 rc = pCmdHlp->pfnPrintf(pCmdHlp, NULL, "\n");1661 rc = DBGCCmdHlpPrintf(pCmdHlp, "\n"); 1662 1662 if (RT_FAILURE(rc)) 1663 1663 break; … … 1707 1707 uint32_t cbLimit = X86DESC_LIMIT_G(pDesc); 1708 1708 1709 rc = pCmdHlp->pfnPrintf(pCmdHlp, NULL, "%04x %s Bas=%08x Lim=%08x DPL=%d %s %s %s %s AVL=%d L=%d%s\n",1709 rc = DBGCCmdHlpPrintf(pCmdHlp, "%04x %s Bas=%08x Lim=%08x DPL=%d %s %s %s %s AVL=%d L=%d%s\n", 1710 1710 iEntry, s_apszTypes[pDesc->Gen.u4Type], u32Base, cbLimit, 1711 1711 pDesc->Gen.u2Dpl, pszPresent, pszAccessed, pszGranularity, pszBig, … … 1746 1746 case X86_SEL_TYPE_SYS_286_TRAP_GATE: 1747 1747 case X86_SEL_TYPE_SYS_TASK_GATE: 1748 rc = pCmdHlp->pfnPrintf(pCmdHlp, NULL, "%04x %s %.8Rhxs DPL=%d %s%s\n",1748 rc = DBGCCmdHlpPrintf(pCmdHlp, "%04x %s %.8Rhxs DPL=%d %s%s\n", 1749 1749 iEntry, s_apszTypes[pDesc->Gen.u4Type], pDesc, 1750 1750 pDesc->Gen.u2Dpl, pszPresent, pszHyper); … … 1762 1762 uint32_t cbLimit = X86DESC_LIMIT_G(pDesc); 1763 1763 1764 rc = pCmdHlp->pfnPrintf(pCmdHlp, NULL, "%04x %s Bas=%016RX64 Lim=%08x DPL=%d %s %s %s %sAVL=%d R=%d%s\n",1764 rc = DBGCCmdHlpPrintf(pCmdHlp, "%04x %s Bas=%016RX64 Lim=%08x DPL=%d %s %s %s %sAVL=%d R=%d%s\n", 1765 1765 iEntry, s_apszTypes[pDesc->Gen.u4Type], u32Base, cbLimit, 1766 1766 pDesc->Gen.u2Dpl, pszPresent, pszBusy, pszLong, pszBig, … … 1780 1780 | ((uint64_t)pDesc->au16[3] << 16) 1781 1781 | ((uint64_t)pDesc->Gen.u32BaseHigh3 << 32); 1782 rc = pCmdHlp->pfnPrintf(pCmdHlp, NULL, "%04x %s Sel:Off=%04x:%016RX64 DPL=%d %s %s=%d%s\n",1782 rc = DBGCCmdHlpPrintf(pCmdHlp, "%04x %s Sel:Off=%04x:%016RX64 DPL=%d %s %s=%d%s\n", 1783 1783 iEntry, s_apszTypes[pDesc->Gen.u4Type], sel, off, 1784 1784 pDesc->Gen.u2Dpl, pszPresent, pszCountOf, cParams, pszHyper); … … 1795 1795 | ((uint64_t)pDesc->au16[3] << 16) 1796 1796 | ((uint64_t)pDesc->Gen.u32BaseHigh3 << 32); 1797 rc = pCmdHlp->pfnPrintf(pCmdHlp, NULL, "%04x %s Sel:Off=%04x:%016RX64 DPL=%d %s%s\n",1797 rc = DBGCCmdHlpPrintf(pCmdHlp, "%04x %s Sel:Off=%04x:%016RX64 DPL=%d %s%s\n", 1798 1798 iEntry, s_apszTypes[pDesc->Gen.u4Type], sel, off, 1799 1799 pDesc->Gen.u2Dpl, pszPresent, pszHyper); … … 1858 1858 cbLimit <<= PAGE_SHIFT; 1859 1859 1860 rc = pCmdHlp->pfnPrintf(pCmdHlp, NULL, "%04x %s Bas=%08x Lim=%08x DPL=%d %s %s %s %s AVL=%d L=%d%s\n",1860 rc = DBGCCmdHlpPrintf(pCmdHlp, "%04x %s Bas=%08x Lim=%08x DPL=%d %s %s %s %s AVL=%d L=%d%s\n", 1861 1861 iEntry, s_apszTypes[pDesc->Gen.u4Type], u32Base, cbLimit, 1862 1862 pDesc->Gen.u2Dpl, pszPresent, pszAccessed, pszGranularity, pszBig, … … 1891 1891 case X86_SEL_TYPE_SYS_UNDEFINED4: 1892 1892 case X86_SEL_TYPE_SYS_UNDEFINED3: 1893 rc = pCmdHlp->pfnPrintf(pCmdHlp, NULL, "%04x %s %.8Rhxs DPL=%d %s%s\n",1893 rc = DBGCCmdHlpPrintf(pCmdHlp, "%04x %s %.8Rhxs DPL=%d %s%s\n", 1894 1894 iEntry, s_apszTypes[pDesc->Gen.u4Type], pDesc, 1895 1895 pDesc->Gen.u2Dpl, pszPresent, pszHyper); … … 1912 1912 cbLimit <<= PAGE_SHIFT; 1913 1913 1914 rc = pCmdHlp->pfnPrintf(pCmdHlp, NULL, "%04x %s Bas=%08x Lim=%08x DPL=%d %s %s %s %s AVL=%d R=%d%s\n",1914 rc = DBGCCmdHlpPrintf(pCmdHlp, "%04x %s Bas=%08x Lim=%08x DPL=%d %s %s %s %s AVL=%d R=%d%s\n", 1915 1915 iEntry, s_apszTypes[pDesc->Gen.u4Type], u32Base, cbLimit, 1916 1916 pDesc->Gen.u2Dpl, pszPresent, pszBusy, pszGranularity, pszBig, … … 1922 1922 case X86_SEL_TYPE_SYS_TASK_GATE: 1923 1923 { 1924 rc = pCmdHlp->pfnPrintf(pCmdHlp, NULL, "%04x %s TSS=%04x DPL=%d %s%s\n",1924 rc = DBGCCmdHlpPrintf(pCmdHlp, "%04x %s TSS=%04x DPL=%d %s%s\n", 1925 1925 iEntry, s_apszTypes[pDesc->Gen.u4Type], pDesc->au16[1], 1926 1926 pDesc->Gen.u2Dpl, pszPresent, pszHyper); … … 1935 1935 RTSEL sel = pDesc->au16[1]; 1936 1936 uint32_t off = pDesc->au16[0] | ((uint32_t)pDesc->au16[3] << 16); 1937 rc = pCmdHlp->pfnPrintf(pCmdHlp, NULL, "%04x %s Sel:Off=%04x:%08x DPL=%d %s %s=%d%s\n",1937 rc = DBGCCmdHlpPrintf(pCmdHlp, "%04x %s Sel:Off=%04x:%08x DPL=%d %s %s=%d%s\n", 1938 1938 iEntry, s_apszTypes[pDesc->Gen.u4Type], sel, off, 1939 1939 pDesc->Gen.u2Dpl, pszPresent, pszCountOf, cParams, pszHyper); … … 1948 1948 RTSEL sel = pDesc->au16[1]; 1949 1949 uint32_t off = pDesc->au16[0] | ((uint32_t)pDesc->au16[3] << 16); 1950 rc = pCmdHlp->pfnPrintf(pCmdHlp, NULL, "%04x %s Sel:Off=%04x:%08x DPL=%d %s%s\n",1950 rc = DBGCCmdHlpPrintf(pCmdHlp, "%04x %s Sel:Off=%04x:%08x DPL=%d %s%s\n", 1951 1951 iEntry, s_apszTypes[pDesc->Gen.u4Type], sel, off, 1952 1952 pDesc->Gen.u2Dpl, pszPresent, pszHyper); … … 2038 2038 { 2039 2039 if (SelInfo.fFlags & DBGFSELINFO_FLAGS_REAL_MODE) 2040 rc = pCmdHlp->pfnPrintf(pCmdHlp, NULL, "%04x RealM Bas=%04x Lim=%04x\n",2040 rc = DBGCCmdHlpPrintf(pCmdHlp, "%04x RealM Bas=%04x Lim=%04x\n", 2041 2041 Sel, (unsigned)SelInfo.GCPtrBase, (unsigned)SelInfo.cbLimit); 2042 2042 else if ( fAll … … 2057 2057 else 2058 2058 { 2059 rc = pCmdHlp->pfnPrintf(pCmdHlp, NULL, "%04x %Rrc\n", Sel, rc);2059 rc = DBGCCmdHlpPrintf(pCmdHlp, "%04x %Rrc\n", Sel, rc); 2060 2060 if (!fAll) 2061 2061 return rc; … … 2069 2069 } 2070 2070 else 2071 pCmdHlp->pfnPrintf(pCmdHlp, NULL, "error: %llx is out of bounds\n", u64);2071 DBGCCmdHlpPrintf(pCmdHlp, "error: %llx is out of bounds\n", u64); 2072 2072 } 2073 2073 … … 2102 2102 case CPUMMODE_LONG: cbEntry = sizeof(X86DESC64); break; 2103 2103 default: 2104 return pCmdHlp->pfnPrintf(pCmdHlp, NULL, "error: Invalid CPU mode %d.\n", enmMode);2104 return DBGCCmdHlpPrintf(pCmdHlp, "error: Invalid CPU mode %d.\n", enmMode); 2105 2105 } 2106 2106 … … 2144 2144 if (iInt * cbEntry + (cbEntry - 1) > cbLimit) 2145 2145 { 2146 pCmdHlp->pfnPrintf(pCmdHlp, NULL, "%04x not within the IDT\n", (unsigned)iInt);2146 DBGCCmdHlpPrintf(pCmdHlp, "%04x not within the IDT\n", (unsigned)iInt); 2147 2147 if (!fAll && !fSingle) 2148 2148 return VINF_SUCCESS; … … 2162 2162 { 2163 2163 case CPUMMODE_REAL: 2164 rc = pCmdHlp->pfnPrintf(pCmdHlp, NULL, "%04x %RTfp16\n", (unsigned)iInt, u.Real);2164 rc = DBGCCmdHlpPrintf(pCmdHlp, "%04x %RTfp16\n", (unsigned)iInt, u.Real); 2165 2165 /** @todo resolve 16:16 IDTE to a symbol */ 2166 2166 break; … … 2183 2183 } 2184 2184 else 2185 pCmdHlp->pfnPrintf(pCmdHlp, NULL, "error: %llx is out of bounds (max 256)\n", paArgs[i].u.u64Number);2185 DBGCCmdHlpPrintf(pCmdHlp, "error: %llx is out of bounds (max 256)\n", paArgs[i].u.u64Number); 2186 2186 } 2187 2187 … … 2250 2250 case DBGCVAR_RANGE_ELEMENTS: 2251 2251 if (pDbgc->DumpPos.u64Range > 2048) 2252 return pCmdHlp->pfnPrintf(pCmdHlp, NULL, "error: Too many elements requested. Max is 2048 elements.\n");2252 return DBGCCmdHlpPrintf(pCmdHlp, "error: Too many elements requested. Max is 2048 elements.\n"); 2253 2253 pDbgc->DumpPos.enmRangeType = DBGCVAR_RANGE_BYTES; 2254 2254 pDbgc->DumpPos.u64Range = (cbElement ? cbElement : 1) * pDbgc->DumpPos.u64Range; … … 2257 2257 case DBGCVAR_RANGE_BYTES: 2258 2258 if (pDbgc->DumpPos.u64Range > 65536) 2259 return pCmdHlp->pfnPrintf(pCmdHlp, NULL, "error: The requested range is too big. Max is 64KB.\n");2259 return DBGCCmdHlpPrintf(pCmdHlp, "error: The requested range is too big. Max is 64KB.\n"); 2260 2260 break; 2261 2261 2262 2262 default: 2263 return pCmdHlp->pfnPrintf(pCmdHlp, NULL, "internal error: Unknown range type %d.\n", pDbgc->DumpPos.enmRangeType);2263 return DBGCCmdHlpPrintf(pCmdHlp, "internal error: Unknown range type %d.\n", pDbgc->DumpPos.enmRangeType); 2264 2264 } 2265 2265 … … 2284 2284 { 2285 2285 if (u8Prev && u8Prev != '\n') 2286 pCmdHlp->pfnPrintf(pCmdHlp, NULL, "\n");2286 DBGCCmdHlpPrintf(pCmdHlp, "\n"); 2287 2287 return pCmdHlp->pfnVBoxError(pCmdHlp, rc, "Reading memory at %DV.\n", &pDbgc->DumpPos); 2288 2288 } … … 2294 2294 if (!fAscii) 2295 2295 { 2296 pCmdHlp->pfnPrintf(pCmdHlp, NULL, "%DV:", &pDbgc->DumpPos);2296 DBGCCmdHlpPrintf(pCmdHlp, "%DV:", &pDbgc->DumpPos); 2297 2297 unsigned i; 2298 2298 for (i = 0; i < cb; i += cbElement) … … 2303 2303 switch (cbElement) 2304 2304 { 2305 case 1: pCmdHlp->pfnPrintf(pCmdHlp, NULL, "%s%02x", pszSpace, *(uint8_t *)&achBuffer[i]); break;2306 case 2: pCmdHlp->pfnPrintf(pCmdHlp, NULL, "%s%04x", pszSpace, *(uint16_t *)&achBuffer[i]); break;2307 case 4: pCmdHlp->pfnPrintf(pCmdHlp, NULL, "%s%08x", pszSpace, *(uint32_t *)&achBuffer[i]); break;2308 case 8: pCmdHlp->pfnPrintf(pCmdHlp, NULL, "%s%016llx", pszSpace, *(uint64_t *)&achBuffer[i]); break;2305 case 1: DBGCCmdHlpPrintf(pCmdHlp, "%s%02x", pszSpace, *(uint8_t *)&achBuffer[i]); break; 2306 case 2: DBGCCmdHlpPrintf(pCmdHlp, "%s%04x", pszSpace, *(uint16_t *)&achBuffer[i]); break; 2307 case 4: DBGCCmdHlpPrintf(pCmdHlp, "%s%08x", pszSpace, *(uint32_t *)&achBuffer[i]); break; 2308 case 8: DBGCCmdHlpPrintf(pCmdHlp, "%s%016llx", pszSpace, *(uint64_t *)&achBuffer[i]); break; 2309 2309 } 2310 2310 } … … 2314 2314 { 2315 2315 while (i++ < sizeof(achBuffer)) 2316 pCmdHlp->pfnPrintf(pCmdHlp, NULL, " ");2317 pCmdHlp->pfnPrintf(pCmdHlp, NULL, " ");2316 DBGCCmdHlpPrintf(pCmdHlp, " "); 2317 DBGCCmdHlpPrintf(pCmdHlp, " "); 2318 2318 for (i = 0; i < cb; i += cbElement) 2319 2319 { 2320 2320 uint8_t u8 = *(uint8_t *)&achBuffer[i]; 2321 2321 if (RT_C_IS_PRINT(u8) && u8 < 127 && u8 >= 32) 2322 pCmdHlp->pfnPrintf(pCmdHlp, NULL, "%c", u8);2322 DBGCCmdHlpPrintf(pCmdHlp, "%c", u8); 2323 2323 else 2324 pCmdHlp->pfnPrintf(pCmdHlp, NULL, ".");2324 DBGCCmdHlpPrintf(pCmdHlp, "."); 2325 2325 } 2326 2326 } 2327 rc = pCmdHlp->pfnPrintf(pCmdHlp, NULL, "\n");2327 rc = DBGCCmdHlpPrintf(pCmdHlp, "\n"); 2328 2328 } 2329 2329 else … … 2334 2334 */ 2335 2335 if (!u8Prev) 2336 pCmdHlp->pfnPrintf(pCmdHlp, NULL, "%DV:\n", &pDbgc->DumpPos);2336 DBGCCmdHlpPrintf(pCmdHlp, "%DV:\n", &pDbgc->DumpPos); 2337 2337 uint8_t u8 = '\0'; 2338 2338 unsigned i; … … 2345 2345 || u8 == '\t' 2346 2346 || u8 == '\n')) 2347 pCmdHlp->pfnPrintf(pCmdHlp, NULL, "%c", u8);2347 DBGCCmdHlpPrintf(pCmdHlp, "%c", u8); 2348 2348 else if (!u8) 2349 2349 break; 2350 2350 else 2351 pCmdHlp->pfnPrintf(pCmdHlp, NULL, "\\x%x", u8);2351 DBGCCmdHlpPrintf(pCmdHlp, "\\x%x", u8); 2352 2352 } 2353 2353 if (u8 == '\0') 2354 2354 cb = cbLeft = i + 1; 2355 2355 if (cbLeft - cb <= 0 && u8Prev != '\n') 2356 pCmdHlp->pfnPrintf(pCmdHlp, NULL, "\n");2356 DBGCCmdHlpPrintf(pCmdHlp, "\n"); 2357 2357 } 2358 2358 … … 3706 3706 if (!pDbgc->cbSearch) 3707 3707 { 3708 pCmdHlp->pfnPrintf(pCmdHlp, NULL, "Error: No previous search\n");3708 DBGCCmdHlpPrintf(pCmdHlp, "Error: No previous search\n"); 3709 3709 return VERR_DBGC_COMMAND_FAILED; 3710 3710 } … … 3817 3817 //if ( cArgs <= 2 3818 3818 // && paArgs[0].enmType != DBGCVAR_TYPE_STRING) 3819 // return pCmdHlp->pfnPrintf(pCmdHlp, NULL, "parser error\n");3819 // return DBGCCmdHlpPrintf(pCmdHlp, "parser error\n"); 3820 3820 3821 3821 /* … … 3867 3867 return pCmdHlp->pfnVBoxError(pCmdHlp, rc, "DBGFR3AsSymbolByName(,,%s,)\n", pArg->u.pszString); 3868 3868 3869 rc = pCmdHlp->pfnPrintf(pCmdHlp, NULL, "%RTptr %s\n", Symbol.Value, Symbol.szName);3869 rc = DBGCCmdHlpPrintf(pCmdHlp, "%RTptr %s\n", Symbol.Value, Symbol.szName); 3870 3870 } 3871 3871 else … … 3887 3887 3888 3888 if (!offDisp) 3889 rc = pCmdHlp->pfnPrintf(pCmdHlp, NULL, "%DV %s", &AddrVar, Symbol.szName);3889 rc = DBGCCmdHlpPrintf(pCmdHlp, "%DV %s", &AddrVar, Symbol.szName); 3890 3890 else if (offDisp > 0) 3891 rc = pCmdHlp->pfnPrintf(pCmdHlp, NULL, "%DV %s + %RGv", &AddrVar, Symbol.szName, offDisp);3891 rc = DBGCCmdHlpPrintf(pCmdHlp, "%DV %s + %RGv", &AddrVar, Symbol.szName, offDisp); 3892 3892 else 3893 rc = pCmdHlp->pfnPrintf(pCmdHlp, NULL, "%DV %s - %RGv", &AddrVar, Symbol.szName, -offDisp);3893 rc = DBGCCmdHlpPrintf(pCmdHlp, "%DV %s - %RGv", &AddrVar, Symbol.szName, -offDisp); 3894 3894 if ((RTGCINTPTR)Symbol.cb > -offDisp) 3895 rc = pCmdHlp->pfnPrintf(pCmdHlp, NULL, " LB %RGv\n", Symbol.cb + offDisp);3895 rc = DBGCCmdHlpPrintf(pCmdHlp, " LB %RGv\n", Symbol.cb + offDisp); 3896 3896 else 3897 rc = pCmdHlp->pfnPrintf(pCmdHlp, NULL, "\n");3897 rc = DBGCCmdHlpPrintf(pCmdHlp, "\n"); 3898 3898 } 3899 3899
Note:
See TracChangeset
for help on using the changeset viewer.