summaryrefslogtreecommitdiff
path: root/gdb/dwarf2loc.h
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2012-03-08 19:37:04 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2012-03-08 19:37:04 +0000
commit614b158b34dda1c86dbb36d5b5784d0f47a83e55 (patch)
tree787770fa4e574e8bfde02d567753401483e33c74 /gdb/dwarf2loc.h
parent63605861f505c8b5830856c8714491945d11a29c (diff)
downloadgdb-614b158b34dda1c86dbb36d5b5784d0f47a83e55.tar.gz
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 a7f835fe6a7..45b0fd8b3e0 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);