diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2010-06-14 16:09:58 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@de.ibm.com> | 2010-06-14 16:09:58 +0000 |
commit | 1e9beacb485fb005a09241ff81e3bd2fa26107aa (patch) | |
tree | bd1c481ce73a56a0a19c5a70e9d0ad4f746825c6 /gdb | |
parent | b769def51609b16a5c44bcfcc0335d8952feeba3 (diff) | |
download | binutils-1e9beacb485fb005a09241ff81e3bd2fa26107aa.zip binutils-1e9beacb485fb005a09241ff81e3bd2fa26107aa.tar.gz binutils-1e9beacb485fb005a09241ff81e3bd2fa26107aa.tar.bz2 |
* 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')
-rw-r--r-- | gdb/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/cp-valprint.c | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 73b5a4e..9ae649b 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,11 @@ 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 of "optimized out" unwound register value. diff --git a/gdb/cp-valprint.c b/gdb/cp-valprint.c index 209a752..57b8dab 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 *)); } |