This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA/DWARF] constant class of DW_AT_high_pc is offset for version >=4 only.
- From: Doug Evans <dje at google dot com>
- To: Joel Brobecker <brobecker at adacore dot com>
- Cc: Mark Wielaard <mjw at redhat dot com>, gdb-patches <gdb-patches at sourceware dot org>
- Date: Tue, 18 Feb 2014 12:29:00 -0800
- Subject: Re: [RFA/DWARF] constant class of DW_AT_high_pc is offset for version >=4 only.
- Authentication-results: sourceware.org; auth=none
- References: <1392478818-30320-1-git-send-email-brobecker at adacore dot com> <20140218133000 dot GA15835 at adacore dot com> <1392739369 dot 21975 dot 145 dot camel at bordewijk dot wildebeest dot org> <20140218184906 dot GB15835 at adacore dot com>
On Tue, Feb 18, 2014 at 10:49 AM, Joel Brobecker <brobecker@adacore.com> wrote:
>> Note that this might break for DWARF5. See http://dwarfstd.org/ShowIssue.php?issue=120719.1
>
> Interesting. I am curious why you would handle this attribute as
> an offset even when the value is encoded in address form? Would
> that not help improve backward compatibility with older versions
> of DWARF?
I can imagine this is another space saving measure (removes a
relocation, and relocations add up).