summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2008-01-30 19:19:51 +0000
committerJoel Brobecker <brobecker@gnat.com>2008-01-30 19:19:51 +0000
commit4e885b20aacc9b21d958151311268682822a6069 (patch)
tree26148d30095e69cc810b75ba196236d7623c8b5e
parentce75a98f1405a2f0929e02fb5e92284c018b5532 (diff)
downloadbinutils-gdb-4e885b20aacc9b21d958151311268682822a6069.tar.gz
* printcmd.c (print_formatted): Handle references as for unformatted
prints.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/printcmd.c1
2 files changed, 6 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 1c60b60c2f7..b80da0ea826 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2008-01-08 Paul Hilfinger <hilfinger@adacore.com>
+
+ * printcmd.c (print_formatted): Handle references as for unformatted
+ prints.
+
2008-01-30 Joel Brobecker <brobecker@adacore.com>
* eval.c (evaluate_subexp_standard): Add handling of user
diff --git a/gdb/printcmd.c b/gdb/printcmd.c
index 68c2a54e550..e73c511e673 100644
--- a/gdb/printcmd.c
+++ b/gdb/printcmd.c
@@ -285,6 +285,7 @@ print_formatted (struct value *val, int format, int size,
}
if (format == 0 || format == 's'
+ || TYPE_CODE (type) == TYPE_CODE_REF
|| TYPE_CODE (type) == TYPE_CODE_ARRAY
|| TYPE_CODE (type) == TYPE_CODE_STRING
|| TYPE_CODE (type) == TYPE_CODE_STRUCT