VirtualBox

Ignore:
Timestamp:
May 12, 2023 12:21:58 PM (2 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
157370
Message:

*: Mark functions as static if not used outside of a given compilation unit. Enables the compiler to optimize inlining, reduces the symbol tables, exposes unused functions and in some rare cases exposes mismtaches between function declarations and definitions, but most importantly reduces the number of parfait reports for the extern-function-no-forward-declaration category. This should not result in any functional changes, bugref:3409

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

Legend:

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

    r99758 r99775  
    423423 * @remarks The caller must have locked the address space for writing.
    424424 */
    425 int rtDbgAsModuleLinkCommon(PRTDBGASINT pDbgAs, RTDBGMOD hDbgMod, RTDBGSEGIDX iSeg,
    426                             RTUINTPTR Addr, RTUINTPTR cb, const char *pszName, uint32_t fFlags)
     425static int rtDbgAsModuleLinkCommon(PRTDBGASINT pDbgAs, RTDBGMOD hDbgMod, RTDBGSEGIDX iSeg,
     426                                   RTUINTPTR Addr, RTUINTPTR cb, const char *pszName, uint32_t fFlags)
    427427{
    428428    /*
  • trunk/src/VBox/Runtime/common/dbg/dbgmoddwarf.cpp

    r98103 r99775  
    33313331 * @param   enmImageArch    The image architecture.
    33323332 */
    3333 DECLHIDDEN(int) rtDwarfUnwind_Slow(PRTDWARFCURSOR pCursor, RTUINTPTR uRvaCursor,
    3334                                    RTDBGSEGIDX idxSeg, RTUINTPTR offSeg, RTUINTPTR uRva,
    3335                                    PRTDBGUNWINDSTATE pState, uint8_t bDefaultPtrEnc, bool fIsEhFrame, RTLDRARCH enmImageArch)
     3333static int rtDwarfUnwind_Slow(PRTDWARFCURSOR pCursor, RTUINTPTR uRvaCursor,
     3334                              RTDBGSEGIDX idxSeg, RTUINTPTR offSeg, RTUINTPTR uRva,
     3335                              PRTDBGUNWINDSTATE pState, uint8_t bDefaultPtrEnc, bool fIsEhFrame, RTLDRARCH enmImageArch)
    33363336{
    33373337    Log8(("rtDwarfUnwind_Slow: idxSeg=%#x offSeg=%RTptr uRva=%RTptr enmArch=%d PC=%#RX64\n", idxSeg, offSeg, uRva, pState->enmArch, pState->uPc));
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