This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Question about -finstrument-functions
- To: Andreas Sorensen <andreas dot sorensen at linacre dot oxford dot ac dot uk>
- Subject: Re: Question about -finstrument-functions
- From: Richard Henderson <rth at cygnus dot com>
- Date: Sat, 24 Jun 2000 11:58:52 -0700
- Cc: "'gcc at gcc dot gnu dot org'" <gcc at gcc dot gnu dot org>
- References: <711441D2D1BDD111B0BE00A0C910257F8629D6@server>
On Sat, Jun 24, 2000 at 07:03:14PM +0100, Andreas Sorensen wrote:
> My question is: what is the value of call_site if this_fn is a signal
> handler? If call_site is an address "outside" the program being profiled...
It's the called function's return address, whatever that might be.
For a signal handler, in all probability the return address is to
a hunk of code that returns to the kernel.
You'll have to figure out for yourself between your libc and your
OS what that address is likely to look like.
r~