From: "Hari K. Pyla" <harip@vt.edu>
To: gcc-help@gcc.gnu.org
Subject: handler for a function returns/exits
Date: Wed, 13 Dec 2006 21:41:00 -0000 [thread overview]
Message-ID: <458073FF.2070403@vt.edu> (raw)
Hi,
I was wondering, if there is any way to register a handler which
gets called whenever any function returns/exits, similar in lines to
_mcount() but, which gets executed before the actual function, when
compiled with -pg option.
I was wondering if it is possible to print the function name or its
address whenever a function exits by, may be making changes to gcc or
glibc. I appreciate you taking time to answer this.
Thanks in advance.
Regards,
--Hari
next reply other threads:[~2006-12-13 21:41 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-12-13 21:41 Hari K. Pyla [this message]
2006-12-14 13:32 ` Andrew Haley
2006-12-14 18:57 ` Hari K. Pyla
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=458073FF.2070403@vt.edu \
--to=harip@vt.edu \
--cc=gcc-help@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).