This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Support for DW_AT_return_addr in gcc
- From: Anitha Boyapati <anitha dot boyapati at gmail dot com>
- To: gcc at gcc dot gnu dot org
- Date: Mon, 24 Oct 2011 18:05:42 +0530
- Subject: Support for DW_AT_return_addr in 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