------- Additional Comments From dberlin at gcc dot gnu dot org  2004-12-30 
16:42 -------
Subject: Re:  [4.0 Regression] No DWARF2
        DW_TAG_inlined_subroutine entry generated

On Thu, 2004-12-30 at 16:14 +0000, fnf at specifixinc dot com wrote:
> ------- 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.
> 

Yup.
One problem at a time though.
:)





-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19191

Reply via email to