This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Access to symbol table from within a program
- From: linguist-gcc at rich-paul dot net
- To: gcc at gcc dot gnu dot org
- Date: Thu, 24 Jan 2002 15:22:04 -0500
- Subject: Access to symbol table from within a program
I'm curious: I have found the -finstrument-functions compiler
switch, and have used to it print out the addresses of functions
as they are called. How could I use the symbol table from within
the program so that I could show the names of the functions as
they are called, something like:
+main
+myfunc1
+myfunc2
-myfunc2
+myfunc3
+myfunc2
-myfunc2
-myfunc3
-myfunc1
-main
This would be really handy.
Is there any reference that would discuss this part of the ABI?
--
Got freedom? Vote Libertarian: http://www.lp.org