diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2006-12-05 20:58:10 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2006-12-05 20:58:10 +0000 |
commit | 918214fc47cc74f443b394426fcafcf7750ab5b0 (patch) | |
tree | dab0eb6af884dfb01c53345cf2e12abeabdba16b | |
parent | c7c39057fbe744f6b74b79dc2090dd826df1554a (diff) | |
download | gdb-918214fc47cc74f443b394426fcafcf7750ab5b0.zip gdb-918214fc47cc74f443b394426fcafcf7750ab5b0.tar.gz gdb-918214fc47cc74f443b394426fcafcf7750ab5b0.tar.bz2 |
2006-12-05 H.J. Lu <hongjiu.lu@intel.com>
* 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.
-rw-r--r-- | gdb/ChangeLog | 7 | ||||
-rw-r--r-- | gdb/cp-valprint.c | 4 | ||||
-rw-r--r-- | gdb/p-valprint.c | 4 |
3 files changed, 11 insertions, 4 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 823eb46..487fa53 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,10 @@ +2006-12-05 H.J. Lu <hongjiu.lu@intel.com> + + * 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-02 Joel Brobecker <brobecker@adacore.com> * version.in: Bump version number to 6.5.91 after first pre-release. diff --git a/gdb/cp-valprint.c b/gdb/cp-valprint.c index 84b66fe..2c086b1 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 33b7974..0049233 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); |