diff options
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/dwarf2read.c | 5 |
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); + } } } |