This is the mail archive of the binutils@sourceware.org mailing list for the binutils 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]

Re: [PATCH 3/3] gold: Handle DW_AT_high_pc as offset from DW_AT_low_pc in gdb-index.cc.


Mark Wielaard <mjw@redhat.com> writes:

> 2012-04-26  Mark Wielaard  <mjw@redhat.com>
>
>     * dwarf_reader.cc (Dwarf_die::address_attribute): New function.
>     * dwarf_reader.h (Dwarf_die::address_attribute): Likewise.
>     * gdb-index.cc (Gdb_index_info_reader::record_cu_ranges): Handle
>     DW_AT_high_pc as offset from DW_AT_low_pc.
>
>     * testsuite/Makefile.am (gdb_index_test_3.sh): New test case.
>     * testsuite/Makefile.in: Regenerate.
>     * testsuite/gdb_index_test_3.c: New test source file.
>     * testsuite/gdb_index_test_3.sh: New test source file.


> diff --git a/gold/dwarf_reader.h b/gold/dwarf_reader.h
> index 0c3dab6..6baef66 100644
> --- a/gold/dwarf_reader.h
> +++ b/gold/dwarf_reader.h
> @@ -550,6 +550,11 @@ class Dwarf_die
>    ref_attribute(unsigned int attr,
>  		unsigned int* shndx);
>  
> +  // Return the value of attribute ATTR as a address.
> +  off_t
> +  address_attribute(unsigned int attr,
> +		    unsigned int* shndx);

Looks like you can bring shndx up to the previous line here.


This is OK with that change.

Thanks.

Ian


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