VirtualBox

Ignore:
Timestamp:
Jul 26, 2016 2:43:03 PM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
109133
Message:

IPRT: Mark unused parameters.

Location:
trunk/src/VBox/Runtime/common/dbg
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/dbg/dbgcfg.cpp

    r62477 r62564  
    870870
    871871#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);
    872875    return VWRN_NOT_FOUND;
    873876#endif /* !IPRT_WITH_HTTP */
     
    878881                                   const char *pszCacheSubDir, const char *pszUuidMappingSubDir, PRTPATHSPLIT pSplitFn)
    879882{
     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
    880886    if (!pszCacheSubDir || !*pszCacheSubDir)
    881887        return VINF_SUCCESS;
     
    13151321                              PFNRTDBGCFGOPEN pfnCallback, void *pvUser1, void *pvUser2)
    13161322{
     1323    RT_NOREF_PV(cbImage);
    13171324    /** @todo test this! */
    13181325    char szSubDir[32];
     
    18651872                                    PRTLISTANCHOR pList)
    18661873{
     1874    RT_NOREF_PV(pThis); RT_NOREF_PV(fPaths);
     1875
    18671876    if (enmOp == RTDBGCFGOP_SET)
    18681877        rtDbgCfgFreeStrList(pList);
     
    19391948                                   PCRTDBGCFGU64MNEMONIC paMnemonics, uint64_t *puValue)
    19401949{
     1950    RT_NOREF_PV(pThis);
     1951
    19411952    uint64_t    uNew = enmOp == RTDBGCFGOP_SET ? 0 : *puValue;
    1942 
    19431953    char        ch;
    19441954    while ((ch = *pszValue))
     
    20952105                                   char *pszValue, size_t cbValue)
    20962106{
     2107    RT_NOREF_PV(hDbgCfg);
     2108
    20972109    /*
    20982110     * Check the length first.
     
    21352147                                  char *pszValue, size_t cbValue)
    21362148{
     2149    RT_NOREF_PV(hDbgCfg);
     2150
    21372151    /*
    21382152     * If no mnemonics, just return the hex value.
  • trunk/src/VBox/Runtime/common/dbg/dbgmod.cpp

    r62477 r62564  
    369369                                  RTUINTPTR uSubtrahend, RTDBGCFG hDbgCfg)
    370370{
     371    RT_NOREF_PV(hDbgCfg);
     372
    371373    /*
    372374     * Input validation and lazy initialization.
     
    505507    PRTDBGMODINT        pDbgMod   = (PRTDBGMODINT)pvUser1;
    506508    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);
    508511
    509512    Assert(!pDbgMod->pDbgVt);
     
    563566{
    564567    RTDBGMODOPENDIETI *pArgs = (RTDBGMODOPENDIETI *)pvUser;
     568    RT_NOREF_PV(hLdrMod);
    565569
    566570    Assert(pDbgInfo->enmType > RTLDRDBGINFOTYPE_INVALID && pDbgInfo->enmType < RTLDRDBGINFOTYPE_END);
     
    675679{
    676680    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);
    678683
    679684    Assert(!pDbgMod->pDbgVt);
     
    945950    PRTDBGMODDEFERRED   pDeferred = (PRTDBGMODDEFERRED)pvUser2;
    946951    LogFlow(("rtDbgModFromPeImageOpenCallback: %s\n", pszFilename));
     952    RT_NOREF_PV(hDbgCfg);
    947953
    948954    Assert(pDbgMod->pImgVt == NULL);
     
    12121218    PRTDBGMODINT        pDbgMod = (PRTDBGMODINT)pvUser1;
    12131219    PCRTDBGMODMACHOARGS pArgs   = (PCRTDBGMODMACHOARGS)pvUser2;
     1220    RT_NOREF_PV(hDbgCfg);
    12141221
    12151222    Assert(!pDbgMod->pDbgVt);
     
    13311338                                        uint32_t cSegs, PCRTDBGSEGMENT paSegs, PCRTUUID pUuid, RTDBGCFG hDbgCfg)
    13321339{
     1340    RT_NOREF_PV(cbImage); RT_NOREF_PV(cSegs); RT_NOREF_PV(paSegs);
     1341
    13331342    RTDBGMODMACHOARGS Args;
    13341343    Args.enmArch    = enmArch;
  • trunk/src/VBox/Runtime/common/dbg/dbgmodcodeview.cpp

    r62477 r62564  
    582582                               uint32_t cchName, uint32_t fFlags, uint32_t cbSym)
    583583{
     584    RT_NOREF_PV(fFlags);
    584585    const char *pszName = rtDbgModCvAddSanitizedStringToCache(pchName, cchName);
    585586    int rc;
     
    667668    RTCPTRUNION uCursor;
    668669    uCursor.pv = pvSymTab;
     670
     671    RT_NOREF_PV(fFlags);
    669672
    670673    while (cbSymTab > 0 && RT_SUCCESS(rc))
     
    827830static int rtDbgModCvSsProcessV8SrcStrings(PRTDBGMODCV pThis, void const *pvSrcStrings, size_t cbSrcStrings, uint32_t fFlags)
    828831{
     832    RT_NOREF_PV(fFlags);
     833
    829834    if (pThis->cbSrcStrings)
    830835        Log(("\n!!More than one source file string table for this module!!\n\n"));
     
    872877static int rtDbgModCvSsProcessV8SrcInfo(PRTDBGMODCV pThis, void const *pvSrcInfo, size_t cbSrcInfo, uint32_t fFlags)
    873878{
     879    RT_NOREF_PV(fFlags);
     880
    874881    if (pThis->cbSrcInfo)
    875882        Log(("\n!!More than one source file info table for this module!!\n\n"));
     
    903910static int rtDbgModCvSsProcessV8SectLines(PRTDBGMODCV pThis, void const *pvSectLines, size_t cbSectLines, uint32_t fFlags)
    904911{
     912    RT_NOREF_PV(fFlags);
     913
    905914    /*
    906915     * Starts with header.
     
    10981107{
    10991108    PCRTCVGLOBALSYMTABHDR pHdr = (PCRTCVGLOBALSYMTABHDR)pvSubSect;
     1109    RT_NOREF_PV(pDirEnt);
    11001110
    11011111    /*
     
    11241134rtDbgModCvSs_Module(PRTDBGMODCV pThis, void const *pvSubSect, size_t cbSubSect, PCRTCVDIRENT32 pDirEnt)
    11251135{
     1136    RT_NOREF_PV(pDirEnt);
     1137
    11261138    RTCPTRUNION uCursor;
    11271139    uCursor.pv = pvSubSect;
     
    11621174rtDbgModCvSs_Symbols_PublicSym_AlignSym(PRTDBGMODCV pThis, void const *pvSubSect, size_t cbSubSect, PCRTCVDIRENT32 pDirEnt)
    11631175{
     1176    RT_NOREF_PV(pDirEnt);
    11641177    RTDBGMODCV_CHECK_NOMSG_RET_BF(pThis->uCurStyle == RT_MAKE_U16('C', 'V'));
    11651178    RTDBGMODCV_CHECK_NOMSG_RET_BF(cbSubSect >= 8);
     
    11801193rtDbgModCvSs_SrcModule(PRTDBGMODCV pThis, void const *pvSubSect, size_t cbSubSect, PCRTCVDIRENT32 pDirEnt)
    11811194{
     1195    RT_NOREF_PV(pDirEnt);
    11821196    Log(("rtDbgModCvSs_SrcModule: uCurStyle=%#x\n%.*Rhxd\n", pThis->uCurStyle, cbSubSect, pvSubSect));
    11831197
     
    16601674    if (pEntry1->uSubSectType > pEntry2->uSubSectType)
    16611675        return 1;
     1676
     1677    RT_NOREF_PV(pvUser);
    16621678    return 0;
    16631679}
     
    21102126                                         PCIMAGE_LINENUMBER paLines, uint32_t cLines)
    21112127{
     2128    RT_NOREF_PV(iSection);
    21122129    Log4(("Adding %u line numbers in section #%u  for %s\n", cLines, iSection, pszFile));
    21132130    PCIMAGE_LINENUMBER pCur = paLines;
     
    24392456{
    24402457    PRTDBGMODCV pThis = (PRTDBGMODCV)pMod->pvDbgPriv;
    2441     Assert(!pszSymbol[cchSymbol]);
     2458    Assert(!pszSymbol[cchSymbol]); RT_NOREF_PV(cchSymbol);
    24422459    return RTDbgModSymbolByName(pThis->hCnt, pszSymbol/*, cchSymbol*/, pSymInfo);
    24432460}
     
    25722589static int rtDbgModCvAddSegmentsFromDbg(PRTDBGMODCV pThis, PCIMAGE_SEPARATE_DEBUG_HEADER pDbgHdr, const char *pszFilename)
    25732590{
     2591    RT_NOREF_PV(pszFilename);
     2592
    25742593    /*
    25752594     * Validate the header fields a little.
     
    27412760                               uint32_t off, uint32_t cb, const char *pszFilename)
    27422761{
     2762    RT_NOREF_PV(pszFilename);
     2763
    27432764    /*
    27442765     * Check that there is sufficient data for a header, then read it.
     
    28342855{
    28352856    int rc = VERR_DBG_NO_MATCHING_INTERPRETER;
     2857    RT_NOREF_PV(enmArch); RT_NOREF_PV(pszFilename);
    28362858
    28372859    /* Is a codeview format we (wish to) support? */
     
    28782900    PRTDBGMODINT pDbgMod = (PRTDBGMODINT)pvUser;
    28792901    Assert(!pDbgMod->pvDbgPriv);
     2902    RT_NOREF_PV(hLdrMod);
    28802903
    28812904    /* Skip external files, RTDbgMod will deal with those
  • trunk/src/VBox/Runtime/common/dbg/dbgmoddwarf.cpp

    r62477 r62564  
    35303530static int rtDwarfLoc_Evaluate(PRTDWARFLOCST pLoc, void *pvLater, void *pvUser)
    35313531{
     3532    RT_NOREF_PV(pvLater); RT_NOREF_PV(pvUser);
     3533
    35323534    while (!rtDwarfCursor_IsAtEndOfUnit(&pLoc->Cursor))
    35333535    {
     
    44244426{
    44254427    PRTDBGMODDWARF pThis = (PRTDBGMODDWARF)pvUser;
    4426     NOREF(hLdrMod);
     4428    RT_NOREF_PV(hLdrMod); RT_NOREF_PV(uSymbol);
    44274429    Assert(pThis->iWatcomPass != 1);
    44284430
     
    45564558{
    45574559    PRTDBGMODDWARF pThis = (PRTDBGMODDWARF)pMod->pvDbgPriv;
    4558     Assert(!pszSymbol[cchSymbol]);
     4560    Assert(!pszSymbol[cchSymbol]); RT_NOREF_PV(cchSymbol);
    45594561    return RTDbgModSymbolByName(pThis->hCnt, pszSymbol/*, cchSymbol*/, pSymInfo);
    45604562}
     
    46704672static DECLCALLBACK(int) rtDbgModDwarfEnumCallback(RTLDRMOD hLdrMod, PCRTLDRDBGINFO pDbgInfo, void *pvUser)
    46714673{
     4674    RT_NOREF_PV(hLdrMod);
     4675
    46724676    /*
    46734677     * Skip stuff we can't handle.
  • trunk/src/VBox/Runtime/common/dbg/dbgmodldr.cpp

    r62477 r62564  
    8989{
    9090    PRTDBGMODLDR pThis = (PRTDBGMODLDR)pMod->pvImgPriv;
     91    RT_NOREF_PV(iDbgInfoHint);
    9192    return rtLdrReadAt(pThis->hLdrMod, pvBuf, UINT32_MAX /** @todo iDbgInfo*/, off, cb);
    9293}
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette