aboutsummaryrefslogtreecommitdiff
path: root/gdb/printcmd.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/printcmd.c')
-rw-r--r--gdb/printcmd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/printcmd.c b/gdb/printcmd.c
index 68c2a54..e73c511 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