AIX

AIX

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


#Power
#Power
 View Only

Substitue of addr2line on AIX 5.3

  • 1.  Substitue of addr2line on AIX 5.3

    Posted Wed October 21, 2009 02:55 AM

    Originally posted by: Whattodo


    Hi,
    In IBM AIX 5.3:
    Is there a way to use address pointer to find the function name/file name/line number from which it was being called?
    I am getting the address pointer using the function __builtin_return_address() .

    I would like to avoid debugger dbx because I am getting difficulty in executing dbx from the C file with parameters.

    I was able to get the exact line number (of caller function)on HP-UX using “addr2line”.

    Thank you
    #AIX-Forum