This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Accessing symbol table to find function given address
- From: "Paulo J. Matos" <pocm at soton dot ac dot uk>
- To: gcc-help at gcc dot gnu dot org
- Date: Sat, 26 May 2007 21:29:02 +0100
- Subject: Accessing symbol table to find function given address
Hello all,
Is there a way to access the symbol table during runtime to know which
function belongs to a given address. The problem is to print the
function name if I am instrumenting functions. I get the address, can
I during runtime print the function name? (or the solution is get it
through addr2line after program as run)?
Cheers,
--
Paulo Jorge Matos - pocm at soton.ac.uk
http://www.personal.soton.ac.uk/pocm
PhD Student @ ECS
University of Southampton, UK