This is the mail archive of the
dwarf2@corp.sgi.com
mailing list for the dwarf2 project.
Re: dwarf: marking exit points
- From: Todd Allen <todd dot allen at ccur dot com>
- To: Jason Merrill <jason at redhat dot com>
- Cc: dwarf2 at els dot sgi dot com
- Date: Fri, 5 Nov 2004 13:48:25 -0700
- Subject: Re: dwarf: marking exit points
- Mail-reply-to: todd dot allen at ccur dot com (Todd Allen)
- References: <xypwtx02hek.fsf@miranda.boston.redhat.com>
- Reply-to: Todd Allen <todd dot allen at ccur dot com>
On Fri, Nov 05, 2004 at 03:02:43PM -0500, Jason Merrill wrote:
> A coworker recently asked if the compiler could provide information about
> function exit points (returns, tail calls, ...) for instrumentation
> purposes. This seemed to me like something we *could* put in the unwind
> info; thoughts?
>
There's a DW_LNS_set_epilogue_begin, which one could use to find the start of
an epilogue. If that isn't close enough, like if you were doing timings in
the instrumentation and needed to count every last nanosecond, then it
wouldn't be much of a stretch to add a DW_LNS_set_epilogue_end or
DW_LNS_set_exit.
--
Todd Allen
Concurrent Computer Corporation