gas: blackfin: handle multibyte symbols
[deliverable/binutils-gdb.git] / gdb / cp-valprint.c
index 57b8dab7027fe2455de8eef1b04502940b4d1131..5f47ec4d9100d26b3e69bd6f843df177a8d192b2 100644 (file)
@@ -164,10 +164,19 @@ cp_print_value_fields (struct type *type, struct type *real_type,
   
   if (recurse == 0)
     {
+      /* Any object can be left on obstacks only during an unexpected error.  */
+
       if (obstack_object_size (&dont_print_statmem_obstack) > 0)
-       obstack_free (&dont_print_statmem_obstack, NULL);
+       {
+         obstack_free (&dont_print_statmem_obstack, NULL);
+         obstack_begin (&dont_print_statmem_obstack, 32 * sizeof (CORE_ADDR));
+       }
       if (obstack_object_size (&dont_print_stat_array_obstack) > 0)
-       obstack_free (&dont_print_stat_array_obstack, NULL);
+       {
+         obstack_free (&dont_print_stat_array_obstack, NULL);
+         obstack_begin (&dont_print_stat_array_obstack,
+                        32 * sizeof (struct type *));
+       }
     }
 
   fprintf_filtered (stream, "{");
This page took 0.025675 seconds and 4 git commands to generate.