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

Jim Wilson wilson@specifixinc.com
Sat Jun 26 02:33:00 GMT 2004


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



More information about the Gcc mailing list