This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH] Handle DWARF4 .debug_frame (and .eh_frame)
- From: Richard Henderson <rth at redhat dot com>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: binutils at sources dot redhat dot com, Cary Coutant <ccoutant at google dot com>
- Date: Mon, 05 Apr 2010 11:05:20 -0700
- Subject: Re: [PATCH] Handle DWARF4 .debug_frame (and .eh_frame)
- References: <20100402092316.GK3601@sunsite.ms.mff.cuni.cz>
On 04/02/2010 02:23 AM, Jakub Jelinek wrote:
> Hi!
>
> DWARF4 not only adds a field into the middle of .debug_line header,
> but also adds two new fields into the middle of CIE. While I don't expect
> GCC (nor gas) to emit version 4 CIEs any time soon, the following
> patch should handle it.
>
> Ok to commit?
>
> 2010-04-02 Jakub Jelinek <jakub@redhat.com>
>
> bfd/
> * elf-eh-frame.c (_bfd_elf_parse_eh_frame): Handle CIE version 4
> provided that it has the expected address size and zero segment
> length.
> binutils/
> * dwarf.c (struct Frame_Chunk): Add ptr_size and segment_size
> fields.
> (display_debug_frames): Handle CIE version 4.
>
Ok.
r~