aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2006-12-05 23:58:37 +0000
committerDaniel Jacobowitz <drow@false.org>2006-12-05 23:58:37 +0000
commit15291d5c14e12880f1bc30ca902c5cbc7a93c4d8 (patch)
tree30a892399b3dd7f460a4b6461c1424c42538116e
parent26e9b69fe8d04c77e7dcf30ffeda5b8c24d5131e (diff)
downloadgdb-15291d5c14e12880f1bc30ca902c5cbc7a93c4d8.zip
gdb-15291d5c14e12880f1bc30ca902c5cbc7a93c4d8.tar.gz
gdb-15291d5c14e12880f1bc30ca902c5cbc7a93c4d8.tar.bz2
* cp-valprint.c, p-valprint.c: Revert last change.
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/cp-valprint.c4
-rw-r--r--gdb/p-valprint.c4
3 files changed, 8 insertions, 4 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 487fa53..fc96d2e 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,7 @@
+2006-12-05 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * cp-valprint.c, p-valprint.c: Revert last change.
+
2006-12-05 H.J. Lu <hongjiu.lu@intel.com>
* cp-valprint.c (cp_print_value_fields): Initialize tmp_obstack.
diff --git a/gdb/cp-valprint.c b/gdb/cp-valprint.c
index 2c086b1..84b66fe 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 = { 0 };
+ struct obstack tmp_obstack;
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 = { 0 };
+ struct obstack tmp_obstack;
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 0049233..33b7974 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 = { 0 };
+ struct obstack tmp_obstack;
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 = { 0 };
+ struct obstack tmp_obstack;
struct type **last_dont_print
= (struct type **) obstack_next_free (&dont_print_vb_obstack);
int i, n_baseclasses = TYPE_N_BASECLASSES (type);