This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
pushed: [RFA/DWARF] constant class of DW_AT_high_pc is offset for version >=4 only.
- From: Joel Brobecker <brobecker at adacore dot com>
- To: gdb-patches at sourceware dot org
- Date: Wed, 26 Feb 2014 11:45:09 -0800
- Subject: pushed: [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> <1392760350 dot 21975 dot 200 dot camel at bordewijk dot wildebeest dot org> <20140219072317 dot GA4270 at adacore dot com> <1392817469 dot 21975 dot 221 dot camel at bordewijk dot wildebeest dot org> <20140221184227 dot GC4720 at adacore dot com>
> gdb/ChangeLog:
>
> * dwarf2read.c (attr_value_as_address): New function.
> (dwarf2_find_base_address, read_call_site_scope): Use
> attr_value_as_address in place of DW_ADDR.
> (dwarf2_get_pc_bounds): Use attr_value_as_address to get
> the low and high addresses. Slight rework of the handling
> of the high pc being a constant form, and limit it to
> DWARF verson 4 or higher.
> (dwarf2_record_block_ranges): Likewise.
> (read_partial_die): Likewise.
> (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
>
> gdb/testsuite/ChangeLog:
>
> * gdb.dwarf2/dw2-abs-hi-pc-hello-dbg.S: New file.
> * gdb.dwarf2/dw2-abs-hi-pc-hello.c: New file.
> * gdb.dwarf2/dw2-abs-hi-pc-world-dbg.S: New file.
> * gdb.dwarf2/dw2-abs-hi-pc-world.c: New file.
> * gdb.dwarf2/dw2-abs-hi-pc.c: New file.
> * gdb.dwarf2/dw2-abs-hi-pc.exp: New file.
FYI: This patch has now been pushed. Thanks again to MarkW for all
the insightful comments.
--
Joel