summaryrefslogtreecommitdiffstats
path: root/gdb/dwarf2loc.h
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2012-03-08 19:37:08 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2012-03-08 19:37:08 +0000
commit7fe25d9bd274089557e2947f7ba09b6e333533cd (patch)
tree425e72499567e1844211391e2f13213d97f44866 /gdb/dwarf2loc.h
parent05e7c244344f338bf2af7718db34eb91637587dd (diff)
downloadppe42-binutils-7fe25d9bd274089557e2947f7ba09b6e333533cd.tar.gz
ppe42-binutils-7fe25d9bd274089557e2947f7ba09b6e333533cd.zip
gdb/
Fix CU relative vs. absolute DIE offsets. * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter offset to offset_in_cu. * dwarf2read.c (process_enumeration_scope): Add CU offset to TYPE_OFFSET. (dwarf2_fetch_die_location_block): Rename parameter offset to offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU. gdb/testsuite/ Fix CU relative vs. absolute DIE offsets. * gdb.dwarf2/dw2-op-call.S: New compilation unit preceding the existing one.
Diffstat (limited to 'gdb/dwarf2loc.h')
-rw-r--r--gdb/dwarf2loc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/dwarf2loc.h b/gdb/dwarf2loc.h
index a7f835fe6a..45b0fd8b3e 100644
--- a/gdb/dwarf2loc.h
+++ b/gdb/dwarf2loc.h
@@ -61,7 +61,7 @@ const gdb_byte *dwarf2_find_location_expression
CORE_ADDR pc);
struct dwarf2_locexpr_baton dwarf2_fetch_die_location_block
- (unsigned int offset, struct dwarf2_per_cu_data *per_cu,
+ (unsigned int offset_in_cu, struct dwarf2_per_cu_data *per_cu,
CORE_ADDR (*get_frame_pc) (void *baton),
void *baton);
OpenPOWER on IntegriCloud