Changeset 62564 in vbox for trunk/src/VBox/Runtime/common/dbg
- Timestamp:
- Jul 26, 2016 2:43:03 PM (9 years ago)
- svn:sync-xref-src-repo-rev:
- 109133
- Location:
- trunk/src/VBox/Runtime/common/dbg
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/dbg/dbgcfg.cpp
r62477 r62564 870 870 871 871 #else /* !IPRT_WITH_HTTP */ 872 RT_NOREF_PV(pThis); RT_NOREF_PV(pszServer); RT_NOREF_PV(pszPath); RT_NOREF_PV(pszCacheSubDir); 873 RT_NOREF_PV(pszUuidMappingSubDir); RT_NOREF_PV(pSplitFn); RT_NOREF_PV(pszCacheSuffix); RT_NOREF_PV(fFlags); 874 RT_NOREF_PV(pfnCallback); RT_NOREF_PV(pvUser1); RT_NOREF_PV(pvUser2); 872 875 return VWRN_NOT_FOUND; 873 876 #endif /* !IPRT_WITH_HTTP */ … … 878 881 const char *pszCacheSubDir, const char *pszUuidMappingSubDir, PRTPATHSPLIT pSplitFn) 879 882 { 883 RT_NOREF_PV(pThis); RT_NOREF_PV(pszSrc); RT_NOREF_PV(pchCache); RT_NOREF_PV(cchCache); 884 RT_NOREF_PV(pszUuidMappingSubDir); RT_NOREF_PV(pSplitFn); 885 880 886 if (!pszCacheSubDir || !*pszCacheSubDir) 881 887 return VINF_SUCCESS; … … 1315 1321 PFNRTDBGCFGOPEN pfnCallback, void *pvUser1, void *pvUser2) 1316 1322 { 1323 RT_NOREF_PV(cbImage); 1317 1324 /** @todo test this! */ 1318 1325 char szSubDir[32]; … … 1865 1872 PRTLISTANCHOR pList) 1866 1873 { 1874 RT_NOREF_PV(pThis); RT_NOREF_PV(fPaths); 1875 1867 1876 if (enmOp == RTDBGCFGOP_SET) 1868 1877 rtDbgCfgFreeStrList(pList); … … 1939 1948 PCRTDBGCFGU64MNEMONIC paMnemonics, uint64_t *puValue) 1940 1949 { 1950 RT_NOREF_PV(pThis); 1951 1941 1952 uint64_t uNew = enmOp == RTDBGCFGOP_SET ? 0 : *puValue; 1942 1943 1953 char ch; 1944 1954 while ((ch = *pszValue)) … … 2095 2105 char *pszValue, size_t cbValue) 2096 2106 { 2107 RT_NOREF_PV(hDbgCfg); 2108 2097 2109 /* 2098 2110 * Check the length first. … … 2135 2147 char *pszValue, size_t cbValue) 2136 2148 { 2149 RT_NOREF_PV(hDbgCfg); 2150 2137 2151 /* 2138 2152 * If no mnemonics, just return the hex value. -
trunk/src/VBox/Runtime/common/dbg/dbgmod.cpp
r62477 r62564 369 369 RTUINTPTR uSubtrahend, RTDBGCFG hDbgCfg) 370 370 { 371 RT_NOREF_PV(hDbgCfg); 372 371 373 /* 372 374 * Input validation and lazy initialization. … … 505 507 PRTDBGMODINT pDbgMod = (PRTDBGMODINT)pvUser1; 506 508 PCRTLDRDBGINFO pDbgInfo = (PCRTLDRDBGINFO)pvUser2; 507 NOREF(pDbgInfo); /** @todo consider a more direct search for a interpreter. */ 509 RT_NOREF_PV(pDbgInfo); /** @todo consider a more direct search for a interpreter. */ 510 RT_NOREF_PV(hDbgCfg); 508 511 509 512 Assert(!pDbgMod->pDbgVt); … … 563 566 { 564 567 RTDBGMODOPENDIETI *pArgs = (RTDBGMODOPENDIETI *)pvUser; 568 RT_NOREF_PV(hLdrMod); 565 569 566 570 Assert(pDbgInfo->enmType > RTLDRDBGINFOTYPE_INVALID && pDbgInfo->enmType < RTLDRDBGINFOTYPE_END); … … 675 679 { 676 680 PRTDBGMODINT pDbgMod = (PRTDBGMODINT)pvUser1; 677 NOREF(pvUser2); /** @todo image matching string or smth. */ 681 RT_NOREF_PV(pvUser2); /** @todo image matching string or smth. */ 682 RT_NOREF_PV(hDbgCfg); 678 683 679 684 Assert(!pDbgMod->pDbgVt); … … 945 950 PRTDBGMODDEFERRED pDeferred = (PRTDBGMODDEFERRED)pvUser2; 946 951 LogFlow(("rtDbgModFromPeImageOpenCallback: %s\n", pszFilename)); 952 RT_NOREF_PV(hDbgCfg); 947 953 948 954 Assert(pDbgMod->pImgVt == NULL); … … 1212 1218 PRTDBGMODINT pDbgMod = (PRTDBGMODINT)pvUser1; 1213 1219 PCRTDBGMODMACHOARGS pArgs = (PCRTDBGMODMACHOARGS)pvUser2; 1220 RT_NOREF_PV(hDbgCfg); 1214 1221 1215 1222 Assert(!pDbgMod->pDbgVt); … … 1331 1338 uint32_t cSegs, PCRTDBGSEGMENT paSegs, PCRTUUID pUuid, RTDBGCFG hDbgCfg) 1332 1339 { 1340 RT_NOREF_PV(cbImage); RT_NOREF_PV(cSegs); RT_NOREF_PV(paSegs); 1341 1333 1342 RTDBGMODMACHOARGS Args; 1334 1343 Args.enmArch = enmArch; -
trunk/src/VBox/Runtime/common/dbg/dbgmodcodeview.cpp
r62477 r62564 582 582 uint32_t cchName, uint32_t fFlags, uint32_t cbSym) 583 583 { 584 RT_NOREF_PV(fFlags); 584 585 const char *pszName = rtDbgModCvAddSanitizedStringToCache(pchName, cchName); 585 586 int rc; … … 667 668 RTCPTRUNION uCursor; 668 669 uCursor.pv = pvSymTab; 670 671 RT_NOREF_PV(fFlags); 669 672 670 673 while (cbSymTab > 0 && RT_SUCCESS(rc)) … … 827 830 static int rtDbgModCvSsProcessV8SrcStrings(PRTDBGMODCV pThis, void const *pvSrcStrings, size_t cbSrcStrings, uint32_t fFlags) 828 831 { 832 RT_NOREF_PV(fFlags); 833 829 834 if (pThis->cbSrcStrings) 830 835 Log(("\n!!More than one source file string table for this module!!\n\n")); … … 872 877 static int rtDbgModCvSsProcessV8SrcInfo(PRTDBGMODCV pThis, void const *pvSrcInfo, size_t cbSrcInfo, uint32_t fFlags) 873 878 { 879 RT_NOREF_PV(fFlags); 880 874 881 if (pThis->cbSrcInfo) 875 882 Log(("\n!!More than one source file info table for this module!!\n\n")); … … 903 910 static int rtDbgModCvSsProcessV8SectLines(PRTDBGMODCV pThis, void const *pvSectLines, size_t cbSectLines, uint32_t fFlags) 904 911 { 912 RT_NOREF_PV(fFlags); 913 905 914 /* 906 915 * Starts with header. … … 1098 1107 { 1099 1108 PCRTCVGLOBALSYMTABHDR pHdr = (PCRTCVGLOBALSYMTABHDR)pvSubSect; 1109 RT_NOREF_PV(pDirEnt); 1100 1110 1101 1111 /* … … 1124 1134 rtDbgModCvSs_Module(PRTDBGMODCV pThis, void const *pvSubSect, size_t cbSubSect, PCRTCVDIRENT32 pDirEnt) 1125 1135 { 1136 RT_NOREF_PV(pDirEnt); 1137 1126 1138 RTCPTRUNION uCursor; 1127 1139 uCursor.pv = pvSubSect; … … 1162 1174 rtDbgModCvSs_Symbols_PublicSym_AlignSym(PRTDBGMODCV pThis, void const *pvSubSect, size_t cbSubSect, PCRTCVDIRENT32 pDirEnt) 1163 1175 { 1176 RT_NOREF_PV(pDirEnt); 1164 1177 RTDBGMODCV_CHECK_NOMSG_RET_BF(pThis->uCurStyle == RT_MAKE_U16('C', 'V')); 1165 1178 RTDBGMODCV_CHECK_NOMSG_RET_BF(cbSubSect >= 8); … … 1180 1193 rtDbgModCvSs_SrcModule(PRTDBGMODCV pThis, void const *pvSubSect, size_t cbSubSect, PCRTCVDIRENT32 pDirEnt) 1181 1194 { 1195 RT_NOREF_PV(pDirEnt); 1182 1196 Log(("rtDbgModCvSs_SrcModule: uCurStyle=%#x\n%.*Rhxd\n", pThis->uCurStyle, cbSubSect, pvSubSect)); 1183 1197 … … 1660 1674 if (pEntry1->uSubSectType > pEntry2->uSubSectType) 1661 1675 return 1; 1676 1677 RT_NOREF_PV(pvUser); 1662 1678 return 0; 1663 1679 } … … 2110 2126 PCIMAGE_LINENUMBER paLines, uint32_t cLines) 2111 2127 { 2128 RT_NOREF_PV(iSection); 2112 2129 Log4(("Adding %u line numbers in section #%u for %s\n", cLines, iSection, pszFile)); 2113 2130 PCIMAGE_LINENUMBER pCur = paLines; … … 2439 2456 { 2440 2457 PRTDBGMODCV pThis = (PRTDBGMODCV)pMod->pvDbgPriv; 2441 Assert(!pszSymbol[cchSymbol]); 2458 Assert(!pszSymbol[cchSymbol]); RT_NOREF_PV(cchSymbol); 2442 2459 return RTDbgModSymbolByName(pThis->hCnt, pszSymbol/*, cchSymbol*/, pSymInfo); 2443 2460 } … … 2572 2589 static int rtDbgModCvAddSegmentsFromDbg(PRTDBGMODCV pThis, PCIMAGE_SEPARATE_DEBUG_HEADER pDbgHdr, const char *pszFilename) 2573 2590 { 2591 RT_NOREF_PV(pszFilename); 2592 2574 2593 /* 2575 2594 * Validate the header fields a little. … … 2741 2760 uint32_t off, uint32_t cb, const char *pszFilename) 2742 2761 { 2762 RT_NOREF_PV(pszFilename); 2763 2743 2764 /* 2744 2765 * Check that there is sufficient data for a header, then read it. … … 2834 2855 { 2835 2856 int rc = VERR_DBG_NO_MATCHING_INTERPRETER; 2857 RT_NOREF_PV(enmArch); RT_NOREF_PV(pszFilename); 2836 2858 2837 2859 /* Is a codeview format we (wish to) support? */ … … 2878 2900 PRTDBGMODINT pDbgMod = (PRTDBGMODINT)pvUser; 2879 2901 Assert(!pDbgMod->pvDbgPriv); 2902 RT_NOREF_PV(hLdrMod); 2880 2903 2881 2904 /* Skip external files, RTDbgMod will deal with those -
trunk/src/VBox/Runtime/common/dbg/dbgmoddwarf.cpp
r62477 r62564 3530 3530 static int rtDwarfLoc_Evaluate(PRTDWARFLOCST pLoc, void *pvLater, void *pvUser) 3531 3531 { 3532 RT_NOREF_PV(pvLater); RT_NOREF_PV(pvUser); 3533 3532 3534 while (!rtDwarfCursor_IsAtEndOfUnit(&pLoc->Cursor)) 3533 3535 { … … 4424 4426 { 4425 4427 PRTDBGMODDWARF pThis = (PRTDBGMODDWARF)pvUser; 4426 NOREF(hLdrMod);4428 RT_NOREF_PV(hLdrMod); RT_NOREF_PV(uSymbol); 4427 4429 Assert(pThis->iWatcomPass != 1); 4428 4430 … … 4556 4558 { 4557 4559 PRTDBGMODDWARF pThis = (PRTDBGMODDWARF)pMod->pvDbgPriv; 4558 Assert(!pszSymbol[cchSymbol]); 4560 Assert(!pszSymbol[cchSymbol]); RT_NOREF_PV(cchSymbol); 4559 4561 return RTDbgModSymbolByName(pThis->hCnt, pszSymbol/*, cchSymbol*/, pSymInfo); 4560 4562 } … … 4670 4672 static DECLCALLBACK(int) rtDbgModDwarfEnumCallback(RTLDRMOD hLdrMod, PCRTLDRDBGINFO pDbgInfo, void *pvUser) 4671 4673 { 4674 RT_NOREF_PV(hLdrMod); 4675 4672 4676 /* 4673 4677 * Skip stuff we can't handle. -
trunk/src/VBox/Runtime/common/dbg/dbgmodldr.cpp
r62477 r62564 89 89 { 90 90 PRTDBGMODLDR pThis = (PRTDBGMODLDR)pMod->pvImgPriv; 91 RT_NOREF_PV(iDbgInfoHint); 91 92 return rtLdrReadAt(pThis->hLdrMod, pvBuf, UINT32_MAX /** @todo iDbgInfo*/, off, cb); 92 93 }
Note:
See TracChangeset
for help on using the changeset viewer.