* cp-valprint.c (cp_print_static_field): Members of
authorUlrich Weigand <uweigand@de.ibm.com>
Mon, 14 Jun 2010 16:09:58 +0000 (16:09 +0000)
committerUlrich Weigand <uweigand@de.ibm.com>
Mon, 14 Jun 2010 16:09:58 +0000 (16:09 +0000)
dont_print_stat_array_obstack are of type "struct type *".
(_initialize_cp_valprint): Likewise.

gdb/ChangeLog
gdb/cp-valprint.c

index 73b5a4ef60f6384f1f0cd637f57b4ea23b005c59..9ae649bb1d36f0a3907bf0f639e5eec79e622c12 100644 (file)
@@ -1,3 +1,9 @@
+2010-06-14  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * cp-valprint.c (cp_print_static_field): Members of
+       dont_print_stat_array_obstack are of type "struct type *".
+       (_initialize_cp_valprint): Likewise.
+
 2010-06-14  Ulrich Weigand  <uweigand@de.ibm.com>
 
        * frame.c (frame_register_unwind): Do not access contents
index 209a7521d9f8f091e3aff10922ce555f30db15de..57b8dab7027fe2455de8eef1b04502940b4d1131 100644 (file)
@@ -615,7 +615,7 @@ cp_print_static_field (struct type *type,
       first_dont_print
        = (struct type **) obstack_base (&dont_print_stat_array_obstack);
       i = obstack_object_size (&dont_print_stat_array_obstack)
-       / sizeof (CORE_ADDR);
+       / sizeof (struct type *);
 
       while (--i >= 0)
        {
@@ -764,7 +764,7 @@ Show printing of object's derived type based on vtable info."), NULL,
                           show_objectprint,
                           &setprintlist, &showprintlist);
 
-  obstack_begin (&dont_print_stat_array_obstack, 32 * sizeof (CORE_ADDR));
+  obstack_begin (&dont_print_stat_array_obstack, 32 * sizeof (struct type *));
   obstack_begin (&dont_print_statmem_obstack, 32 * sizeof (CORE_ADDR));
   obstack_begin (&dont_print_vb_obstack, 32 * sizeof (struct type *));
 }