VirtualBox

Ignore:
Timestamp:
Aug 24, 2011 2:33:32 PM (13 years ago)
Author:
vboxsync
Message:

IPRT: Working on debug info again.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/ldr/ldrEx.cpp

    r33540 r38515  
    340340RTDECL(int) RTLdrEnumSymbols(RTLDRMOD hLdrMod, unsigned fFlags, const void *pvBits, RTUINTPTR BaseAddress, PFNRTLDRENUMSYMS pfnCallback, void *pvUser)
    341341{
    342     LogFlow(("RTLdrEnumSymbols: hLdrMod=%RTldrm fFlags=%#x pvBit=%p BaseAddress=%RTptr pfnCallback=%p pvUser=%p\n",
     342    LogFlow(("RTLdrEnumSymbols: hLdrMod=%RTldrm fFlags=%#x pvBits=%p BaseAddress=%RTptr pfnCallback=%p pvUser=%p\n",
    343343             hLdrMod, fFlags, pvBits, BaseAddress, pfnCallback, pvUser));
    344344
     
    361361RT_EXPORT_SYMBOL(RTLdrEnumSymbols);
    362362
     363
     364RTDECL(int) RTLdrEnumDbgInfo(RTLDRMOD hLdrMod, const void *pvBits, PFNRTLDRENUMDBG pfnCallback, void *pvUser)
     365{
     366    LogFlow(("RTLdrEnumDbgInfo: hLdrMod=%RTldrm pvBits=%p pfnCallback=%p pvUser=%p\n",
     367             hLdrMod, pvBits, pfnCallback, pvUser));
     368
     369    /*
     370     * Validate input.
     371     */
     372    AssertMsgReturn(rtldrIsValid(hLdrMod), ("hLdrMod=%p\n", hLdrMod), VERR_INVALID_HANDLE);
     373    AssertMsgReturn(!pvBits || RT_VALID_PTR(pvBits), ("pvBits=%p\n", pvBits), VERR_INVALID_PARAMETER);
     374    AssertMsgReturn(RT_VALID_PTR(pfnCallback), ("pfnCallback=%p\n", pfnCallback), VERR_INVALID_PARAMETER);
     375    PRTLDRMODINTERNAL pMod = (PRTLDRMODINTERNAL)hLdrMod;
     376    //AssertMsgReturn(pMod->eState == LDR_STATE_OPENED, ("eState=%d\n", pMod->eState), VERR_WRONG_ORDER);
     377
     378    /*
     379     * Do it.
     380     */
     381    int rc;
     382    if (pMod->pOps->pfnEnumDbgInfo)
     383        rc = pMod->pOps->pfnEnumDbgInfo(pMod, pvBits, pfnCallback, pvUser);
     384    else
     385        rc = VERR_NOT_SUPPORTED;
     386
     387    LogFlow(("RTLdrEnumDbgInfo: returns %Rrc\n", rc));
     388    return rc;
     389}
     390RT_EXPORT_SYMBOL(RTLdrEnumDbgInfo);
     391
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