This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Reading linenumber and sourcefile
- From: David Sveningsson <david dot sveningsson at telia dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Wed, 06 Sep 2006 18:00:31 +0200
- Subject: Reading linenumber and sourcefile
Hi, I am using backtrace() and backtrace_symbols to get the call stack,
then I use __cxa_demangle to demangle the symbol names. However I would
also like to read the linenumber and sourcefile, like gdb does. I can
read this manually by using the addr2line utility but I want to read it
realtime. Any suggestions?
--
*//David Sveningsson [eXt]*
______________________________________
Freelance Coder | Game Developer Student
[ http://sidvind.com ] [ http://nitroxy.com ]