This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Call Stack (Reflection)
- To: fp at informatik dot uni-frankfurt dot de
- Subject: Re: Call Stack (Reflection)
- From: <peeter_joot at VNET dot IBM dot COM> (peeter joot)
- Date: Sun, 17 Jan 1999 14:30:25 -0500 (EST)
- Cc: egcs at cygnus dot com
- Reply-To: <peeter_joot at VNET dot IBM dot COM>
Hi Frank,
The glibc-2.1 source code has stack traceback functions built-in. You
could use that code -- it is actually quite simple.
These will give you the addresses, and you can use one of the dl
functions (dladdr?) to give you the names.
For demangling you can use the bfd library, or (in a pinch) a pipe to
c++filt.
Peeter
--
Peeter Joot peeterj@ca.ibm.com