Support for DW_AT_return_addr in gcc
Anitha Boyapati
anitha.boyapati@gmail.com
Mon Oct 24 14:01:00 GMT 2011
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
More information about the Gcc
mailing list