Changeset 39083 in vbox for trunk/src/VBox/Runtime/common/dbg
- Timestamp:
- Oct 22, 2011 12:28:46 AM (13 years ago)
- svn:sync-xref-src-repo-rev:
- 74515
- Location:
- trunk/src/VBox/Runtime/common/dbg
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/dbg/dbgmod.cpp
r38553 r39083 129 129 static DECLCALLBACK(void) rtDbgModTermCallback(RTTERMREASON enmReason, int32_t iStatus, void *pvUser) 130 130 { 131 NOREF(iStatus); NOREF(pvUser); 131 132 if (enmReason == RTTERMREASON_UNLOAD) 132 133 { … … 258 259 static DECLCALLBACK(int) rtDbgModInitOnce(void *pvUser1, void *pvUser2) 259 260 { 261 NOREF(pvUser1); NOREF(pvUser2); 262 260 263 /* 261 264 * Create the semaphore and string cache. … … 362 365 363 366 364 RTDECL(int) RTDbgModCreateDeferred(PRTDBGMOD phDbgMod, const char *pszFilename, const char *pszName, RTUINTPTR cb, uint32_t fFlags) 365 { 367 RTDECL(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); 366 371 return VERR_NOT_IMPLEMENTED; 367 372 } … … 501 506 502 507 503 RTDECL(int) RTDbgModCreateFromMap(PRTDBGMOD phDbgMod, const char *pszFilename, const char *pszName, RTUINTPTR uSubtrahend, uint32_t fFlags) 508 RTDECL(int) RTDbgModCreateFromMap(PRTDBGMOD phDbgMod, const char *pszFilename, const char *pszName, 509 RTUINTPTR uSubtrahend, uint32_t fFlags) 504 510 { 505 511 /* … … 512 518 AssertPtrNullReturn(pszName, VERR_INVALID_POINTER); 513 519 AssertReturn(fFlags == 0, VERR_INVALID_PARAMETER); 520 AssertReturn(uSubtrahend == 0, VERR_NOT_IMPLEMENTED); /** @todo implement uSubtrahend. */ 514 521 515 522 int rc = rtDbgModLazyInit(); -
trunk/src/VBox/Runtime/common/dbg/dbgmodcontainer.cpp
r28800 r39083 400 400 pSymbol->cb = cb; 401 401 pSymbol->fFlags = fFlags; 402 pSymbol->NameCore.pszString = RTStrCacheEnter (g_hDbgModStrCache, pszSymbol);402 pSymbol->NameCore.pszString = RTStrCacheEnterN(g_hDbgModStrCache, pszSymbol, cchSymbol); 403 403 int rc; 404 404 if (pSymbol->NameCore.pszString) … … 604 604 pSym->NameCore.pszString = NULL; 605 605 RTMemFree(pSym); 606 NOREF(pvUser); 606 607 return 0; 607 608 } … … 638 639 static DECLCALLBACK(int) rtDbgModContainer_TryOpen(PRTDBGMODINT pMod) 639 640 { 641 NOREF(pMod); 640 642 return VERR_INTERNAL_ERROR_5; 641 643 } -
trunk/src/VBox/Runtime/common/dbg/dbgmoddwarf.cpp
r39070 r39083 827 827 Log(("Segment %.*s: LinkAddress=%#llx RVA=%#llx cb=%#llx\n", 828 828 pSeg->cchName, pSeg->pchName, (uint64_t)pSeg->LinkAddress, (uint64_t)pSeg->RVA, pSeg->cb)); 829 NOREF(hLdrMod); 829 830 RTLDRADDR cb = RT_MAX(pSeg->cb, pSeg->cbMapped); 830 831 #if 1 … … 922 923 static int rtDbgModDwarfStringToUtf8(PRTDBGMODDWARF pThis, char **ppsz) 923 924 { 925 /** @todo DWARF & UTF-8. */ 926 NOREF(pThis); 924 927 RTStrPurgeEncoding(*ppsz); 925 928 return VINF_SUCCESS; … … 1731 1734 ? pLnState->papszFileNames[pLnState->Regs.iFile] 1732 1735 : "<bad file name index>"; 1736 NOREF(offOpCode); 1737 1733 1738 RTDBGSEGIDX iSeg; 1734 1739 RTUINTPTR offSeg; … … 2437 2442 { 2438 2443 AssertReturn(ATTR_GET_SIZE(pDesc) == sizeof(RTDWARFADDR), VERR_INTERNAL_ERROR_3); 2444 NOREF(pDie); 2439 2445 2440 2446 uint64_t uAddr; … … 2465 2471 { 2466 2472 AssertReturn(ATTR_GET_SIZE(pDesc) == sizeof(bool), VERR_INTERNAL_ERROR_3); 2473 NOREF(pDie); 2467 2474 2468 2475 bool *pfMember = (bool *)pbMember; … … 2496 2503 AssertReturn(ATTR_GET_SIZE(pDesc) == sizeof(RTDWARFADDRRANGE), VERR_INTERNAL_ERROR_3); 2497 2504 AssertReturn(pDesc->uAttr == DW_AT_low_pc || pDesc->uAttr == DW_AT_high_pc, VERR_INTERNAL_ERROR_3); 2505 NOREF(pDie); 2498 2506 2499 2507 uint64_t uAddr; … … 2545 2553 AssertReturn(ATTR_GET_SIZE(pDesc) == sizeof(RTDWARFADDRRANGE), VERR_INTERNAL_ERROR_3); 2546 2554 AssertReturn(pDesc->uAttr == DW_AT_low_pc || pDesc->uAttr == DW_AT_high_pc, VERR_INTERNAL_ERROR_3); 2555 NOREF(pDie); 2547 2556 2548 2557 /* Decode it. */ … … 2658 2667 { 2659 2668 AssertReturn(ATTR_GET_SIZE(pDesc) == sizeof(RTDWARFREF), VERR_INTERNAL_ERROR_3); 2669 NOREF(pDie); 2660 2670 2661 2671 uint64_t off; … … 2699 2709 { 2700 2710 AssertReturn(ATTR_GET_SIZE(pDesc) == sizeof(const char *), VERR_INTERNAL_ERROR_3); 2711 NOREF(pDie); 2701 2712 2702 2713 switch (uForm) … … 2722 2733 uint32_t uForm, PRTDWARFCURSOR pCursor) 2723 2734 { 2735 NOREF(pDie); 2724 2736 uint64_t u64Val; 2725 2737 switch (uForm) … … 2888 2900 PCRTDWARFABBREV pAbbrev, PRTDWARFDIE pParent) 2889 2901 { 2902 NOREF(pThis); 2890 2903 Assert(pDieDesc->cbDie >= sizeof(RTDWARFDIE)); 2891 2904 PRTDWARFDIE pDie = (PRTDWARFDIE)RTMemAllocZ(pDieDesc->cbDie); … … 3282 3295 { 3283 3296 PRTDBGMODDWARF pThis = (PRTDBGMODDWARF)pMod->pvDbgPriv; 3297 Assert(!pszFile[cchFile]); NOREF(cchFile); 3284 3298 return RTDbgModLineAdd(pThis->hCnt, pszFile, uLineNo, iSeg, off, piOrdinal); 3285 3299 } … … 3327 3341 { 3328 3342 PRTDBGMODDWARF pThis = (PRTDBGMODDWARF)pMod->pvDbgPriv; 3343 Assert(!pszSymbol[cchSymbol]); NOREF(cchSymbol); 3329 3344 return RTDbgModSymbolAdd(pThis->hCnt, pszSymbol, iSeg, off, cb, fFlags, piOrdinal); 3330 3345 } … … 3352 3367 { 3353 3368 PRTDBGMODDWARF pThis = (PRTDBGMODDWARF)pMod->pvDbgPriv; 3369 Assert(!pszName[cchName]); NOREF(cchName); 3354 3370 return RTDbgModSegmentAdd(pThis->hCnt, uRva, cb, pszName, fFlags, piSeg); 3355 3371 } … … 3397 3413 const char *pszExtFile, void *pvUser) 3398 3414 { 3415 NOREF(hLdrMod); NOREF(iDbgInfo); NOREF(iMajorVer); NOREF(iMinorVer); NOREF(LinkAddress); 3416 3399 3417 /* 3400 3418 * Skip stuff we can't handle. -
trunk/src/VBox/Runtime/common/dbg/dbgmodldr.cpp
r38581 r39083 64 64 static DECLCALLBACK(int) rtDbgModLdr_UnmapPart(PRTDBGMODINT pMod, size_t cb, void const **ppvMap) 65 65 { 66 NOREF(pMod); NOREF(cb); 66 67 RTMemFree((void *)*ppvMap); 67 68 *ppvMap = NULL; -
trunk/src/VBox/Runtime/common/dbg/dbgmodnm.cpp
r38515 r39083 86 86 { 87 87 PRTDBGMODNM pThis = (PRTDBGMODNM)pMod->pvDbgPriv; 88 Assert(!pszFile[cchFile]); NOREF(cchFile); 88 89 return RTDbgModLineAdd(pThis->hCnt, pszFile, uLineNo, iSeg, off, piOrdinal); 89 90 } … … 100 101 101 102 /** @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; 103 static 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); 105 108 return RTDbgModSymbolByName(pThis->hCnt, pszSymbol, pSymInfo); 106 109 } … … 129 132 { 130 133 PRTDBGMODNM pThis = (PRTDBGMODNM)pMod->pvDbgPriv; 134 Assert(!pszSymbol[cchSymbol]); NOREF(cchSymbol); 131 135 return RTDbgModSymbolAdd(pThis->hCnt, pszSymbol, iSeg, off, cb, fFlags, piOrdinal); 132 136 } … … 150 154 151 155 /** @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; 156 static 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); 156 161 return RTDbgModSegmentAdd(pThis->hCnt, uRva, cb, pszName, fFlags, piSeg); 157 162 }
Note:
See TracChangeset
for help on using the changeset viewer.