public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Support for DW_AT_return_addr in gcc
@ 2011-10-24 14:01 Anitha Boyapati
  0 siblings, 0 replies; only message in thread
From: Anitha Boyapati @ 2011-10-24 14:01 UTC (permalink / raw)
  To: gcc

Hi All,

According to DWARF spec, a subprogram 'may' have DW_AT_return_addr
attribute. Please help me understand the following::

(1). GCC (latest) does not emit DW_AT_return_addr attributes in subprogram tags

(2). If [1] is true, then is it  because of the fact that return
address can be computed by unwinding the stack in debug_frame? (and
that generating DW_AT_return_addr will be redundant?)

(3).  Would supporting DW_AT_return_addr in DW_TAG_subprogram be a
good idea? (more of a short cut to dwarf consumers )


Thanks
--
 Anitha

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-10-24 12:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-10-24 14:01 Support for DW_AT_return_addr in gcc Anitha Boyapati

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).