This is the mail archive of the
mailing list for the GCC project.
Re: Access to symbol table from within a program
- From: John Levon <levon at movementarian dot org>
- To: gcc at gcc dot gnu dot org
- Date: Thu, 24 Jan 2002 20:30:26 +0000
- Subject: Re: Access to symbol table from within a program
- References: <20020124152204.A3618@monster.rich-paul.net>
On Thu, Jan 24, 2002 at 03:22:04PM -0500, email@example.com wrote:
> 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:
> This would be really handy.
You need to open the binary with bfd or whatever. Some very dumb code :
There are also things that do it for you, you can just plug it in.
"ALL television is children's television."
- Richard Adler