61b2884
commit 744735550d4a4fd6d4be40776069d799dca5ee39
61b2884
Author: Ulrich Weigand <uweigand@de.ibm.com>
61b2884
Date:   Mon Jun 14 16:09:55 2010 +0000
61b2884
61b2884
    	* cp-valprint.c (cp_print_static_field): Members of
61b2884
    	dont_print_stat_array_obstack are of type "struct type *".
61b2884
    	(_initialize_cp_valprint): Likewise.
61b2884
61b2884
### a/gdb/ChangeLog
61b2884
### b/gdb/ChangeLog
61b2884
## -1,5 +1,11 @@
61b2884
 2010-06-14  Ulrich Weigand  <uweigand@de.ibm.com>
61b2884
 
61b2884
+	* cp-valprint.c (cp_print_static_field): Members of
61b2884
+	dont_print_stat_array_obstack are of type "struct type *".
61b2884
+	(_initialize_cp_valprint): Likewise.
61b2884
+
61b2884
+2010-06-14  Ulrich Weigand  <uweigand@de.ibm.com>
61b2884
+
61b2884
 	* frame.c (frame_register_unwind): Do not access contents
61b2884
 	of "optimized out" unwound register value.
61b2884
 
61b2884
--- a/gdb/cp-valprint.c
61b2884
+++ b/gdb/cp-valprint.c
61b2884
@@ -615,7 +615,7 @@ cp_print_static_field (struct type *type,
61b2884
       first_dont_print
61b2884
 	= (struct type **) obstack_base (&dont_print_stat_array_obstack);
61b2884
       i = obstack_object_size (&dont_print_stat_array_obstack)
61b2884
-	/ sizeof (CORE_ADDR);
61b2884
+	/ sizeof (struct type *);
61b2884
 
61b2884
       while (--i >= 0)
61b2884
 	{
61b2884
@@ -764,7 +764,7 @@ Show printing of object's derived type based on vtable info."), NULL,
61b2884
 			   show_objectprint,
61b2884
 			   &setprintlist, &showprintlist);
61b2884
 
61b2884
-  obstack_begin (&dont_print_stat_array_obstack, 32 * sizeof (CORE_ADDR));
61b2884
+  obstack_begin (&dont_print_stat_array_obstack, 32 * sizeof (struct type *));
61b2884
   obstack_begin (&dont_print_statmem_obstack, 32 * sizeof (CORE_ADDR));
61b2884
   obstack_begin (&dont_print_vb_obstack, 32 * sizeof (struct type *));
61b2884
 }