* dwarf2read.c (dwarf2_fetch_die_loc_sect_off): New function.
authorTom Tromey <tromey@redhat.com>
Mon, 10 Dec 2012 17:17:29 +0000 (17:17 +0000)
committerTom Tromey <tromey@redhat.com>
Mon, 10 Dec 2012 17:17:29 +0000 (17:17 +0000)
commit8b9737bf8cca3d3f999bb48a27019933f2138c2c
treebaeba3860356f90c0986f90733137348d482e61c
parent93eed41f8ee40080a4e5f21fe7e950e5f34534ae
* dwarf2read.c (dwarf2_fetch_die_loc_sect_off): New function.
(dwarf2_fetch_die_loc_cu_off): Rename from
dwarf2_fetch_die_location_block.  Rewrite to use
dwarf2_fetch_die_loc_sect_off.
* dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Declare.
(dwarf2_fetch_die_loc_cu_off): Rename.
* dwarf2loc.c (indirect_pieced_value): Use
dwarf2_fetch_die_loc_sect_off.
* dwarf2expr.h (struct dwarf_expr_context) <len, data>: Update
comment.
(struct dwarf_expr_piece) <v.ptr.die>: Now a sect_offset.
* dwarf2expr.c (add_piece): Update.
(execute_stack_op) <DW_OP_GNU_implicit_pointer>: Update comment.
testsuite
* gdb.dwarf2/implptr-64bit.exp: Run tests with two CUs as well.
(test): Add "two_cu" argument.
* gdb.dwarf2/implptr-64bit.S: Move subprogram later; use ref_addr
for types; allow two CUs.
gdb/ChangeLog
gdb/dwarf2expr.c
gdb/dwarf2expr.h
gdb/dwarf2loc.c
gdb/dwarf2loc.h
gdb/dwarf2read.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.dwarf2/implptr-64bit.S
gdb/testsuite/gdb.dwarf2/implptr-64bit.exp