diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2010-06-14 16:09:55 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@de.ibm.com> | 2010-06-14 16:09:55 +0000 |
commit | 744735550d4a4fd6d4be40776069d799dca5ee39 (patch) | |
tree | 1244acdbbe56780dfe3c1425c672af36d8608251 /gdb/cp-valprint.c | |
parent | a27ed1dae752ea701a5a53456509cb3266f0f304 (diff) | |
download | gdb-744735550d4a4fd6d4be40776069d799dca5ee39.tar.gz |
* cp-valprint.c (cp_print_static_field): Members of
dont_print_stat_array_obstack are of type "struct type *".
(_initialize_cp_valprint): Likewise.
Diffstat (limited to 'gdb/cp-valprint.c')
-rw-r--r-- | gdb/cp-valprint.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/cp-valprint.c b/gdb/cp-valprint.c index 209a7521d9f..57b8dab7027 100644 --- a/gdb/cp-valprint.c +++ b/gdb/cp-valprint.c @@ -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 *)); } |