mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-01-21 07:23:38 +08:00
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.
This commit is contained in:
parent
9f3bdf60f9
commit
1281d2a30a
@ -1,3 +1,8 @@
|
||||
2012-03-06 Joel Brobecker <brobecker@adacore.com>
|
||||
|
||||
* dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
|
||||
in call to get_die_type_at_offset.
|
||||
|
||||
2012-03-06 Stan Shebs <stan@codesourcery.com>
|
||||
|
||||
* mi/mi-cmd-break.c: Enforce coding standards, fix comments.
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user