This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Function, file and line information out of '_Unwind_Context'ptr


Gerrit Bruchhäuser wrote:
how can I retreive a backtrace which includes function-name, file and line information on Tr64-OSF-Alpha (glibc is not supported on this platform).

Extract the pc from the context structure, and use system() to call the addr2line program from binutils. This assumes the program was compiled with debug info.
--
Jim Wilson, GNU Tools Support, http://www.SpecifixInc.com



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]