This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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);
+	    }
 	}
     }
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]