This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[dictionary] calculate names for class psyms correctly
- From: David Carlton <carlton at bactrian dot org>
- To: gdb-patches at sources dot redhat dot com
- Date: 28 May 2003 16:58:07 -0700
- Subject: [dictionary] calculate names for class psyms correctly
When calculating the fully-qualified names of partial symbols
corresponding to nested classes, I wasn't going through the children
of the partial die correctly; this patch fixes that.
David Carlton
carlton@bactrian.org
2003-05-28 David Carlton <carlton@bactrian.org>
* dwarf2read.c (add_partial_structure): When looking for a
subprogram child, go sibling by sibling.
Index: dwarf2read.c
===================================================================
RCS file: /cvs/src/src/gdb/dwarf2read.c,v
retrieving revision 1.66.4.28
diff -u -p -r1.66.4.28 dwarf2read.c
--- dwarf2read.c 28 May 2003 22:31:11 -0000 1.66.4.28
+++ dwarf2read.c 28 May 2003 23:56:58 -0000
@@ -1774,6 +1774,11 @@ add_partial_structure (struct partial_di
struct_pdi->name = actual_class_name;
break;
}
+ else
+ {
+ next_child = locate_pdi_sibling (&child_pdi, next_child,
+ abfd, cu_header);
+ }
}
}