diff options
author | Joel Brobecker <brobecker@gnat.com> | 2012-03-06 23:41:50 +0000 |
---|---|---|
committer | Joel Brobecker <brobecker@gnat.com> | 2012-03-06 23:41:50 +0000 |
commit | 1281d2a30a0a95b46ef86b64d7e3f1d5502c14ba (patch) | |
tree | 98852e186ad2a60aaf491950fdc307b1ab8686f4 /gdb/dwarf2read.c | |
parent | 9f3bdf60f97e0d6745fbae99d1af4d38aa8409d3 (diff) | |
download | gdb-1281d2a30a0a95b46ef86b64d7e3f1d5502c14ba.zip gdb-1281d2a30a0a95b46ef86b64d7e3f1d5502c14ba.tar.gz gdb-1281d2a30a0a95b46ef86b64d7e3f1d5502c14ba.tar.bz2 |
Pass absolute die offset in call to get_die_type_at_offset
gdb/ChangeLog:
* dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
in call to get_die_type_at_offset.
Diffstat (limited to 'gdb/dwarf2read.c')
-rw-r--r-- | gdb/dwarf2read.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index 3fa28b1..307d98e 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c @@ -14269,7 +14269,7 @@ dwarf2_get_die_type (unsigned int die_offset, struct dwarf2_per_cu_data *per_cu) { dw2_setup (per_cu->objfile); - return get_die_type_at_offset (die_offset, per_cu); + return get_die_type_at_offset (per_cu->offset + die_offset, per_cu); } /* Follow the signature attribute ATTR in SRC_DIE. |