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]

[intercu] Mostly warning tweaks


Two warnings that crept in, and one corner case - if DW_AT_specification
points to something with a specification (very unlikely to happen IMO) we
may need to recurse.

Committed to the intercu branch.

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer

2004-02-21  Daniel Jacobowitz  <drow@mvista.com>

	* dwarf2read.c (splay_tree_obstack_allocate): Disable.
	(add_partial_symbol): Fix a warning.
	(fixup_partial_die): Recurse if necessary.

Index: dwarf2read.c
===================================================================
RCS file: /cvs/src/src/gdb/dwarf2read.c,v
retrieving revision 1.135.2.10
diff -u -p -r1.135.2.10 dwarf2read.c
--- dwarf2read.c	21 Feb 2004 21:14:10 -0000	1.135.2.10
+++ dwarf2read.c	21 Feb 2004 21:18:45 -0000
@@ -947,12 +947,14 @@ static void
 dwarf2_symbol_mark_computed (struct attribute *attr, struct symbol *sym,
 			     struct dwarf2_cu *cu);
 
+#if 0
 /* Allocation function for the libiberty splay tree which uses an obstack.  */
 static void *
 splay_tree_obstack_allocate (int size, void *data)
 {
   return obstack_alloc ((struct obstack *) data, size);
 }
+#endif
 
 /* Trivial deallocation function for the libiberty splay tree.  */
 static void
@@ -1547,7 +1549,7 @@ add_partial_symbol (struct partial_die_i
     }
 
   if (my_prefix)
-    free (my_prefix);
+    free ((char *) my_prefix);
 
   switch (pdi->tag)
     {
@@ -4774,6 +4776,8 @@ fixup_partial_die (struct partial_die_in
       struct partial_die_info *spec_die;
 
       spec_die = find_partial_die (part_die->spec_offset, cu);
+
+      fixup_partial_die (spec_die, cu);
 
       if (spec_die->name)
 	{


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