This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug debug/19191] [4.0 Regression] No DWARF2 DW_TAG_inlined_subroutine entry generated
- From: "fnf at specifixinc dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Dec 2004 16:14:17 -0000
- Subject: [Bug debug/19191] [4.0 Regression] No DWARF2 DW_TAG_inlined_subroutine entry generated
- References: <20041229165447.19191.fnf@specifixinc.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From fnf at specifixinc dot com 2004-12-30 16:14 -------
I tried the patch and it does generate a entry:
<2><cd>: Abbrev Number: 10 (DW_TAG_inlined_subroutine)
DW_AT_abstract_origin: <5f>
DW_AT_low_pc : 0x80483a1
DW_AT_high_pc : 0x80483a6
Note though that this only covers the first instruction of the inlined
subroutine, the mov instr at 80483a1:
080483a0 <main>:
80483a0: 55 push %ebp
80483a1: b8 04 00 00 00 mov $0x4,%eax
80483a6: 89 e5 mov %esp,%ebp
I believe what needs to happen is for the DWARF2 DW_TAG_inlined_subroutine
entry to use the DW_AT_ranges attribute to indentify the discontiguous
address ranges of the inlined subroutine, instead of using DW_AT_low_pc and
DW_AT_high_pc.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19191