From: Joel Brobecker Date: Tue, 6 Mar 2012 23:41:50 +0000 (+0000) Subject: Pass absolute die offset in call to get_die_type_at_offset X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1281d2a30a0a95b46ef86b64d7e3f1d5502c14ba;p=binutils-gdb.git 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. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 760ae5c8654..e54180cc3ef 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2012-03-06 Joel Brobecker + + * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset + in call to get_die_type_at_offset. + 2012-03-06 Stan Shebs * mi/mi-cmd-break.c: Enforce coding standards, fix comments. diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index 3fa28b1ceba..307d98e93d2 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.