This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]