]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* dwarf2read.c (splay_tree_obstack_allocate): Disable.
authorDaniel Jacobowitz <drow@false.org>
Sat, 21 Feb 2004 21:26:34 +0000 (21:26 +0000)
committerDaniel Jacobowitz <drow@false.org>
Sat, 21 Feb 2004 21:26:34 +0000 (21:26 +0000)
(add_partial_symbol): Fix a warning.
(fixup_partial_die): Recurse if necessary.

gdb/ChangeLog.intercu
gdb/dwarf2read.c

index d860cf3bc017855c8687aafefec771dfcd788a35..664822d1b1a5921851d25283d729b37c16fbaf25 100644 (file)
@@ -1,3 +1,9 @@
+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.
+
 2004-02-21  Daniel Jacobowitz  <drow@mvista.com>
 
        * dwarf2read.c (partial_determine_prefix)
index d4cf62535a14fb5ed6e46685b959c310050bec77..d1c01ef8b048a219692636f55b588eab4a6fed89 100644 (file)
@@ -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_info *pdi,
     }
 
   if (my_prefix)
-    free (my_prefix);
+    free ((char *) my_prefix);
 
   switch (pdi->tag)
     {
@@ -4775,6 +4777,8 @@ fixup_partial_die (struct partial_die_info *part_die,
 
       spec_die = find_partial_die (part_die->spec_offset, cu);
 
+      fixup_partial_die (spec_die, cu);
+
       if (spec_die->name)
        {
          part_die->name = spec_die->name;