VirtualBox

Changeset 46165 in vbox for trunk/include/iprt


Ignore:
Timestamp:
May 19, 2013 7:07:50 PM (12 years ago)
Author:
vboxsync
Message:

Made dSYM-bundle loading work as well as line numbers in the stack traces (when possible).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/dbg.h

    r46161 r46165  
    851851
    852852/**
    853  * Query a line number by address.
    854  *
    855  * @returns IPRT status code. See RTDbgModSymbolAddrA for more specific ones.
    856  * @retval  VERR_INVALID_HANDLE if hDbgAs is invalid.
    857  * @retval  VERR_NOT_FOUND if the address couldn't be mapped to a module.
    858  *
    859  * @param   hDbgAs          The address space handle.
    860  * @param   Addr            The address which closest symbol is requested.
    861  * @param   poffDisp        Where to return the distance between the line
    862  *                          number and address.
    863  * @param   pLine           Where to return the line number information.
    864  */
    865 RTDECL(int) RTDbgAsLineByAddr(RTDBGAS hDbgAs, RTUINTPTR Addr, PRTINTPTR poffDisp, PRTDBGLINE pLine);
    866 
    867 /**
    868853 * Adds a line number to a module in the address space.
    869854 *
    870  * @returns IPRT status code. See RTDbgModSymbolAdd for more specific ones.
     855 * @returns IPRT status code. See RTDbgModLineAdd for more specific ones.
    871856 * @retval  VERR_INVALID_HANDLE if hDbgAs is invalid.
    872857 * @retval  VERR_NOT_FOUND if no module was found at the specified address.
     
    884869RTDECL(int) RTDbgAsLineAdd(RTDBGAS hDbgAs, const char *pszFile, uint32_t uLineNo, RTUINTPTR Addr, uint32_t *piOrdinal);
    885870
    886 
    887871/**
    888872 * Query a line number by address.
    889873 *
    890  * @returns IPRT status code. See RTDbgModSymbolAddrA for more specific ones.
     874 * @returns IPRT status code. See RTDbgModLineAddrA for more specific ones.
    891875 * @retval  VERR_INVALID_HANDLE if hDbgAs is invalid.
    892876 * @retval  VERR_NOT_FOUND if the address couldn't be mapped to a module.
     
    897881 *                          number and address.
    898882 * @param   pLine           Where to return the line number information.
    899  */
    900 RTDECL(int) RTDbgAsLineByAddr(RTDBGAS hDbgAs, RTUINTPTR Addr, PRTINTPTR poffDisp, PRTDBGLINE pLine);
     883 * @param   phMod           Where to return the module handle. Optional.
     884 */
     885RTDECL(int) RTDbgAsLineByAddr(RTDBGAS hDbgAs, RTUINTPTR Addr, PRTINTPTR poffDisp, PRTDBGLINE pLine, PRTDBGMOD phMod);
    901886
    902887/**
    903888 * Query a line number by address.
    904889 *
    905  * @returns IPRT status code. See RTDbgModSymbolAddrA for more specific ones.
     890 * @returns IPRT status code. See RTDbgModLineAddrA for more specific ones.
    906891 * @retval  VERR_INVALID_HANDLE if hDbgAs is invalid.
    907892 * @retval  VERR_NOT_FOUND if the address couldn't be mapped to a module.
     
    913898 * @param   ppLine          Where to return the pointer to the allocated line
    914899 *                          number info. Always set. Free with RTDbgLineFree.
    915  */
    916 RTDECL(int) RTDbgAsLineByAddrA(RTDBGAS hDbgAs, RTUINTPTR Addr, PRTINTPTR poffDisp, PRTDBGLINE *ppLine);
     900 * @param   phMod           Where to return the module handle. Optional.
     901 */
     902RTDECL(int) RTDbgAsLineByAddrA(RTDBGAS hDbgAs, RTUINTPTR Addr, PRTINTPTR poffDisp, PRTDBGLINE *ppLine, PRTDBGMOD phMod);
    917903
    918904/** @todo Missing some bits here. */
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