This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Function, file and line information out of '_Unwind_Context'ptr
- From: Jim Wilson <wilson at specifixinc dot com>
- To: Gerrit Bruchhäuser<gbruchhaeuser at orga-systems dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Fri, 25 Jun 2004 19:32:15 -0700
- Subject: Re: Function, file and line information out of '_Unwind_Context'ptr
- References: <40D6B841.7030908@orga-systems.com>
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