From bb1abb0fbea3d7a12d1b888d901bb6fd293df1df Mon Sep 17 00:00:00 2001 From: David Carlton Date: Thu, 29 May 2003 00:01:36 +0000 Subject: 2003-05-28 David Carlton * dwarf2read.c (add_partial_structure): When looking for a subprogram child, go sibling by sibling. --- gdb/ChangeLog | 5 +++++ gdb/dwarf2read.c | 5 +++++ 2 files changed, 10 insertions(+) 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 + * dwarf2read.c (add_partial_structure): When looking for a + subprogram child, go sibling by sibling. + +2003-05-28 David Carlton + * 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); + } } } -- cgit v1.1