]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
2006-12-05 H.J. Lu <hongjiu.lu@intel.com>
authorH.J. Lu <hjl.tools@gmail.com>
Tue, 5 Dec 2006 20:58:10 +0000 (20:58 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Tue, 5 Dec 2006 20:58:10 +0000 (20:58 +0000)
* 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.

gdb/ChangeLog
gdb/cp-valprint.c
gdb/p-valprint.c

index 823eb46dd35a3873eb59f5333ade41686454593a..487fa53b2160a29c819b16dfd9257cf2e21990e2 100644 (file)
@@ -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.
index 84b66fe7a81b7f4d9d6f53185b6cb33e84364fce..2c086b17bddb45a61c2111647636b468c9123c39 100644 (file)
@@ -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);
index 33b797451ecdd49c7e063323916a02d7925b9357..0049233c22f67f6697c9893ba9ad12bee4994cd9 100644 (file)
@@ -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);