aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarf2read.c
diff options
context:
space:
mode:
authorDoug Evans <xdje42@gmail.com>2014-10-25 21:46:00 -0700
committerDoug Evans <xdje42@gmail.com>2014-10-25 21:46:00 -0700
commitca040673e070391c8e5c35a12ef6b33fe03128ad (patch)
tree4fd38a0d5afa495b13ede67aacf0402912ac54a2 /gdb/dwarf2read.c
parent9667818c4eba346667b7dbc772a07ed10e8b5629 (diff)
downloadgdb-ca040673e070391c8e5c35a12ef6b33fe03128ad.zip
gdb-ca040673e070391c8e5c35a12ef6b33fe03128ad.tar.gz
gdb-ca040673e070391c8e5c35a12ef6b33fe03128ad.tar.bz2
Remove second (nested) copy of local var child_die.
gdb/ChangeLog: * dwarf2read.c (process_structure_scope): Remove second (nested) copy of local var child_die.
Diffstat (limited to 'gdb/dwarf2read.c')
-rw-r--r--gdb/dwarf2read.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c
index eccd11a..3f2a127 100644
--- a/gdb/dwarf2read.c
+++ b/gdb/dwarf2read.c
@@ -13016,7 +13016,7 @@ static void
process_structure_scope (struct die_info *die, struct dwarf2_cu *cu)
{
struct objfile *objfile = cu->objfile;
- struct die_info *child_die = die->child;
+ struct die_info *child_die;
struct type *type;
type = get_die_type (die, cu);
@@ -13026,7 +13026,6 @@ process_structure_scope (struct die_info *die, struct dwarf2_cu *cu)
if (die->child != NULL && ! die_is_declaration (die, cu))
{
struct field_info fi;
- struct die_info *child_die;
VEC (symbolp) *template_args = NULL;
struct cleanup *back_to = make_cleanup (null_cleanup, 0);
@@ -13197,6 +13196,8 @@ process_structure_scope (struct die_info *die, struct dwarf2_cu *cu)
current die is a declaration. Normally, of course, a declaration
won't have any children at all. */
+ child_die = die->child;
+
while (child_die != NULL && child_die->tag)
{
if (child_die->tag == DW_TAG_member