From: H.J. Lu Date: Tue, 5 Dec 2006 20:53:28 +0000 (+0000) Subject: 2006-12-05 H.J. Lu X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9fb92a5a5b003e2741171194dc5ae5eb3ba5f4aa;p=binutils-gdb.git 2006-12-05 H.J. Lu * cp-valprint.c (cp_print_value_fields): Initialize tmp_obstack. (cp_print_value): Likewise. * p-valprint.c (pascal_object_print_value_fields): Likewise. (pascal_object_print_value): Likewise. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index c9769ab14e7..93c16f844cd 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,10 @@ +2006-12-05 H.J. Lu + + * cp-valprint.c (cp_print_value_fields): Initialize tmp_obstack. + (cp_print_value): Likewise. + * p-valprint.c (pascal_object_print_value_fields): Likewise. + (pascal_object_print_value): Likewise. + 2006-12-05 Adam Nemet * target.c (debug_to_remove_watchpoint): Call diff --git a/gdb/cp-valprint.c b/gdb/cp-valprint.c index 84b66fe7a81..2c086b17bdd 100644 --- a/gdb/cp-valprint.c +++ b/gdb/cp-valprint.c @@ -265,7 +265,7 @@ cp_print_value_fields (struct type *type, struct type *real_type, struct type **dont_print_vb,int dont_print_statmem) { int i, len, n_baseclasses; - struct obstack tmp_obstack; + struct obstack tmp_obstack = { 0 }; char *last_dont_print = obstack_next_free (&dont_print_statmem_obstack); int fields_seen = 0; @@ -524,7 +524,7 @@ cp_print_value (struct type *type, struct type *real_type, struct ui_file *stream, int format, int recurse, enum val_prettyprint pretty, struct type **dont_print_vb) { - struct obstack tmp_obstack; + struct obstack tmp_obstack = { 0 }; struct type **last_dont_print = (struct type **) obstack_next_free (&dont_print_vb_obstack); int i, n_baseclasses = TYPE_N_BASECLASSES (type); diff --git a/gdb/p-valprint.c b/gdb/p-valprint.c index 33b797451ec..0049233c22f 100644 --- a/gdb/p-valprint.c +++ b/gdb/p-valprint.c @@ -753,7 +753,7 @@ pascal_object_print_value_fields (struct type *type, const gdb_byte *valaddr, int dont_print_statmem) { int i, len, n_baseclasses; - struct obstack tmp_obstack; + struct obstack tmp_obstack = { 0 }; char *last_dont_print = obstack_next_free (&dont_print_statmem_obstack); CHECK_TYPEDEF (type); @@ -922,7 +922,7 @@ pascal_object_print_value (struct type *type, const gdb_byte *valaddr, enum val_prettyprint pretty, struct type **dont_print_vb) { - struct obstack tmp_obstack; + struct obstack tmp_obstack = { 0 }; struct type **last_dont_print = (struct type **) obstack_next_free (&dont_print_vb_obstack); int i, n_baseclasses = TYPE_N_BASECLASSES (type);