This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
addr2line function
- From: Ivan Novick <novickivan at gmail dot com>
- To: binutils at sourceware dot org
- Date: Tue, 24 Nov 2009 11:21:58 -0800
- Subject: addr2line function
Hello,
Is there any standard function that will give similar output to the
addr2line program, without launching a new process to do so?
Basically I want to print out a stack trace of my current location in
a program that includes line numbers and file names without starting a
new process.
This would be used to print error messages that has full context as to
the stack when the error occurred.
Thanks and regards,
Ivan Novick