AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
#Power
 View Only

__builtin_return_address symbolic representation for return address

  • 1.  __builtin_return_address symbolic representation for return address

    Posted Mon November 16, 2009 02:18 AM

    Originally posted by: Wkdunreal


    Hi,

    I am in need to decode the return address from __builtin_return_address to get the caller function name.

    Is there a function or a way to do this?

    Am using AIX 5.3 and using xlC as the compiler.
    Casting aside __builtin_return_address

    Is there any other way to generate a stack trace so that I can find out a caller function to a particulat function say malloc().

    ( To trace down where malloc has been called from).

    I want to avoid using DBX at all costs :( .
    All this needs to be done using xlc as the compiler.

    Thanks and Regards
    #AIX-Forum