aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Carlton <carlton@bactrian.org>2003-05-29 00:01:36 +0000
committerDavid Carlton <carlton@bactrian.org>2003-05-29 00:01:36 +0000
commitbb1abb0fbea3d7a12d1b888d901bb6fd293df1df (patch)
treedfaf73f41311c2490536321afacad6e93866e56d
parenta2becb14955d4c66860a6ef54f776e99752fe4f0 (diff)
downloadgdb-bb1abb0fbea3d7a12d1b888d901bb6fd293df1df.zip
gdb-bb1abb0fbea3d7a12d1b888d901bb6fd293df1df.tar.gz
gdb-bb1abb0fbea3d7a12d1b888d901bb6fd293df1df.tar.bz2
2003-05-28 David Carlton <carlton@bactrian.org>
* dwarf2read.c (add_partial_structure): When looking for a subprogram child, go sibling by sibling.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/dwarf2read.c5
2 files changed, 10 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 0041204..ea42531 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
2003-05-28 David Carlton <carlton@bactrian.org>
+ * dwarf2read.c (add_partial_structure): When looking for a
+ subprogram child, go sibling by sibling.
+
+2003-05-28 David Carlton <carlton@bactrian.org>
+
* dwarf2read.c (determine_prefix): Handle anonymous
classes/structures.
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c
index 55d31d1..276163a 100644
--- a/gdb/dwarf2read.c
+++ b/gdb/dwarf2read.c
@@ -1774,6 +1774,11 @@ add_partial_structure (struct partial_die_info *struct_pdi, char *info_ptr,
struct_pdi->name = actual_class_name;
break;
}
+ else
+ {
+ next_child = locate_pdi_sibling (&child_pdi, next_child,
+ abfd, cu_header);
+ }
}
}