VirtualBox

Ignore:
Timestamp:
Oct 22, 2011 12:28:46 AM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
74515
Message:

IPRT: -Wunused-parameter.

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

Legend:

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

    r38553 r39083  
    129129static DECLCALLBACK(void) rtDbgModTermCallback(RTTERMREASON enmReason, int32_t iStatus, void *pvUser)
    130130{
     131    NOREF(iStatus); NOREF(pvUser);
    131132    if (enmReason == RTTERMREASON_UNLOAD)
    132133    {
     
    258259static DECLCALLBACK(int) rtDbgModInitOnce(void *pvUser1, void *pvUser2)
    259260{
     261    NOREF(pvUser1); NOREF(pvUser2);
     262
    260263    /*
    261264     * Create the semaphore and string cache.
     
    362365
    363366
    364 RTDECL(int)         RTDbgModCreateDeferred(PRTDBGMOD phDbgMod, const char *pszFilename, const char *pszName, RTUINTPTR cb, uint32_t fFlags)
    365 {
     367RTDECL(int) RTDbgModCreateDeferred(PRTDBGMOD phDbgMod, const char *pszFilename, const char *pszName,
     368                                   RTUINTPTR cb, uint32_t fFlags)
     369{
     370    NOREF(phDbgMod); NOREF(pszFilename); NOREF(pszName); NOREF(cb); NOREF(fFlags);
    366371    return VERR_NOT_IMPLEMENTED;
    367372}
     
    501506
    502507
    503 RTDECL(int) RTDbgModCreateFromMap(PRTDBGMOD phDbgMod, const char *pszFilename, const char *pszName, RTUINTPTR uSubtrahend, uint32_t fFlags)
     508RTDECL(int) RTDbgModCreateFromMap(PRTDBGMOD phDbgMod, const char *pszFilename, const char *pszName,
     509                                  RTUINTPTR uSubtrahend, uint32_t fFlags)
    504510{
    505511    /*
     
    512518    AssertPtrNullReturn(pszName, VERR_INVALID_POINTER);
    513519    AssertReturn(fFlags == 0, VERR_INVALID_PARAMETER);
     520    AssertReturn(uSubtrahend == 0, VERR_NOT_IMPLEMENTED); /** @todo implement uSubtrahend. */
    514521
    515522    int rc = rtDbgModLazyInit();
  • trunk/src/VBox/Runtime/common/dbg/dbgmodcontainer.cpp

    r28800 r39083  
    400400    pSymbol->cb                 = cb;
    401401    pSymbol->fFlags             = fFlags;
    402     pSymbol->NameCore.pszString = RTStrCacheEnter(g_hDbgModStrCache, pszSymbol);
     402    pSymbol->NameCore.pszString = RTStrCacheEnterN(g_hDbgModStrCache, pszSymbol, cchSymbol);
    403403    int rc;
    404404    if (pSymbol->NameCore.pszString)
     
    604604    pSym->NameCore.pszString = NULL;
    605605    RTMemFree(pSym);
     606    NOREF(pvUser);
    606607    return 0;
    607608}
     
    638639static DECLCALLBACK(int) rtDbgModContainer_TryOpen(PRTDBGMODINT pMod)
    639640{
     641    NOREF(pMod);
    640642    return VERR_INTERNAL_ERROR_5;
    641643}
  • trunk/src/VBox/Runtime/common/dbg/dbgmoddwarf.cpp

    r39070 r39083  
    827827    Log(("Segment %.*s: LinkAddress=%#llx RVA=%#llx cb=%#llx\n",
    828828         pSeg->cchName, pSeg->pchName, (uint64_t)pSeg->LinkAddress, (uint64_t)pSeg->RVA, pSeg->cb));
     829    NOREF(hLdrMod);
    829830    RTLDRADDR cb = RT_MAX(pSeg->cb, pSeg->cbMapped);
    830831#if 1
     
    922923static int rtDbgModDwarfStringToUtf8(PRTDBGMODDWARF pThis, char **ppsz)
    923924{
     925    /** @todo DWARF & UTF-8. */
     926    NOREF(pThis);
    924927    RTStrPurgeEncoding(*ppsz);
    925928    return VINF_SUCCESS;
     
    17311734                        ? pLnState->papszFileNames[pLnState->Regs.iFile]
    17321735                        : "<bad file name index>";
     1736    NOREF(offOpCode);
     1737
    17331738    RTDBGSEGIDX iSeg;
    17341739    RTUINTPTR   offSeg;
     
    24372442{
    24382443    AssertReturn(ATTR_GET_SIZE(pDesc) == sizeof(RTDWARFADDR), VERR_INTERNAL_ERROR_3);
     2444    NOREF(pDie);
    24392445
    24402446    uint64_t uAddr;
     
    24652471{
    24662472    AssertReturn(ATTR_GET_SIZE(pDesc) == sizeof(bool), VERR_INTERNAL_ERROR_3);
     2473    NOREF(pDie);
    24672474
    24682475    bool *pfMember = (bool *)pbMember;
     
    24962503    AssertReturn(ATTR_GET_SIZE(pDesc) == sizeof(RTDWARFADDRRANGE), VERR_INTERNAL_ERROR_3);
    24972504    AssertReturn(pDesc->uAttr == DW_AT_low_pc || pDesc->uAttr == DW_AT_high_pc, VERR_INTERNAL_ERROR_3);
     2505    NOREF(pDie);
    24982506
    24992507    uint64_t uAddr;
     
    25452553    AssertReturn(ATTR_GET_SIZE(pDesc) == sizeof(RTDWARFADDRRANGE), VERR_INTERNAL_ERROR_3);
    25462554    AssertReturn(pDesc->uAttr == DW_AT_low_pc || pDesc->uAttr == DW_AT_high_pc, VERR_INTERNAL_ERROR_3);
     2555    NOREF(pDie);
    25472556
    25482557    /* Decode it. */
     
    26582667{
    26592668    AssertReturn(ATTR_GET_SIZE(pDesc) == sizeof(RTDWARFREF), VERR_INTERNAL_ERROR_3);
     2669    NOREF(pDie);
    26602670
    26612671    uint64_t off;
     
    26992709{
    27002710    AssertReturn(ATTR_GET_SIZE(pDesc) == sizeof(const char *), VERR_INTERNAL_ERROR_3);
     2711    NOREF(pDie);
    27012712
    27022713    switch (uForm)
     
    27222733                                                   uint32_t uForm, PRTDWARFCURSOR pCursor)
    27232734{
     2735    NOREF(pDie);
    27242736    uint64_t u64Val;
    27252737    switch (uForm)
     
    28882900                                      PCRTDWARFABBREV pAbbrev, PRTDWARFDIE pParent)
    28892901{
     2902    NOREF(pThis);
    28902903    Assert(pDieDesc->cbDie >= sizeof(RTDWARFDIE));
    28912904    PRTDWARFDIE pDie = (PRTDWARFDIE)RTMemAllocZ(pDieDesc->cbDie);
     
    32823295{
    32833296    PRTDBGMODDWARF pThis = (PRTDBGMODDWARF)pMod->pvDbgPriv;
     3297    Assert(!pszFile[cchFile]); NOREF(cchFile);
    32843298    return RTDbgModLineAdd(pThis->hCnt, pszFile, uLineNo, iSeg, off, piOrdinal);
    32853299}
     
    33273341{
    33283342    PRTDBGMODDWARF pThis = (PRTDBGMODDWARF)pMod->pvDbgPriv;
     3343    Assert(!pszSymbol[cchSymbol]); NOREF(cchSymbol);
    33293344    return RTDbgModSymbolAdd(pThis->hCnt, pszSymbol, iSeg, off, cb, fFlags, piOrdinal);
    33303345}
     
    33523367{
    33533368    PRTDBGMODDWARF pThis = (PRTDBGMODDWARF)pMod->pvDbgPriv;
     3369    Assert(!pszName[cchName]); NOREF(cchName);
    33543370    return RTDbgModSegmentAdd(pThis->hCnt, uRva, cb, pszName, fFlags, piSeg);
    33553371}
     
    33973413                                                   const char *pszExtFile, void *pvUser)
    33983414{
     3415    NOREF(hLdrMod); NOREF(iDbgInfo); NOREF(iMajorVer); NOREF(iMinorVer); NOREF(LinkAddress);
     3416
    33993417    /*
    34003418     * Skip stuff we can't handle.
  • trunk/src/VBox/Runtime/common/dbg/dbgmodldr.cpp

    r38581 r39083  
    6464static DECLCALLBACK(int) rtDbgModLdr_UnmapPart(PRTDBGMODINT pMod, size_t cb, void const **ppvMap)
    6565{
     66    NOREF(pMod); NOREF(cb);
    6667    RTMemFree((void *)*ppvMap);
    6768    *ppvMap = NULL;
  • trunk/src/VBox/Runtime/common/dbg/dbgmodnm.cpp

    r38515 r39083  
    8686{
    8787    PRTDBGMODNM pThis = (PRTDBGMODNM)pMod->pvDbgPriv;
     88    Assert(!pszFile[cchFile]); NOREF(cchFile);
    8889    return RTDbgModLineAdd(pThis->hCnt, pszFile, uLineNo, iSeg, off, piOrdinal);
    8990}
     
    100101
    101102/** @interface_method_impl{RTDBGMODVTDBG,pfnSymbolByName} */
    102 static DECLCALLBACK(int) rtDbgModNm_SymbolByName(PRTDBGMODINT pMod, const char *pszSymbol, size_t cchSymbol, PRTDBGSYMBOL pSymInfo)
    103 {
    104     PRTDBGMODNM pThis = (PRTDBGMODNM)pMod->pvDbgPriv;
     103static DECLCALLBACK(int) rtDbgModNm_SymbolByName(PRTDBGMODINT pMod, const char *pszSymbol, size_t cchSymbol,
     104                                                 PRTDBGSYMBOL pSymInfo)
     105{
     106    PRTDBGMODNM pThis = (PRTDBGMODNM)pMod->pvDbgPriv;
     107    Assert(!pszSymbol[cchSymbol]); NOREF(cchSymbol);
    105108    return RTDbgModSymbolByName(pThis->hCnt, pszSymbol, pSymInfo);
    106109}
     
    129132{
    130133    PRTDBGMODNM pThis = (PRTDBGMODNM)pMod->pvDbgPriv;
     134    Assert(!pszSymbol[cchSymbol]); NOREF(cchSymbol);
    131135    return RTDbgModSymbolAdd(pThis->hCnt, pszSymbol, iSeg, off, cb, fFlags, piOrdinal);
    132136}
     
    150154
    151155/** @interface_method_impl{RTDBGMODVTDBG,pfnSegmentAdd} */
    152 static DECLCALLBACK(int) rtDbgModNm_SegmentAdd(PRTDBGMODINT pMod, RTUINTPTR uRva, RTUINTPTR cb, const char *pszName, size_t cchName,
    153                                                uint32_t fFlags, PRTDBGSEGIDX piSeg)
    154 {
    155     PRTDBGMODNM pThis = (PRTDBGMODNM)pMod->pvDbgPriv;
     156static DECLCALLBACK(int) rtDbgModNm_SegmentAdd(PRTDBGMODINT pMod, RTUINTPTR uRva, RTUINTPTR cb, const char *pszName,
     157                                               size_t cchName, uint32_t fFlags, PRTDBGSEGIDX piSeg)
     158{
     159    PRTDBGMODNM pThis = (PRTDBGMODNM)pMod->pvDbgPriv;
     160    Assert(!pszName[cchName]); NOREF(cchName);
    156161    return RTDbgModSegmentAdd(pThis->hCnt, uRva, cb, pszName, fFlags, piSeg);
    157162}
Note: See TracChangeset for help on using the changeset viewer.

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