diff options
author | Joel Brobecker <brobecker@gnat.com> | 2008-01-30 19:19:51 +0000 |
---|---|---|
committer | Joel Brobecker <brobecker@gnat.com> | 2008-01-30 19:19:51 +0000 |
commit | 4e885b20aacc9b21d958151311268682822a6069 (patch) | |
tree | 26148d30095e69cc810b75ba196236d7623c8b5e /gdb/printcmd.c | |
parent | ce75a98f1405a2f0929e02fb5e92284c018b5532 (diff) | |
download | gdb-4e885b20aacc9b21d958151311268682822a6069.zip gdb-4e885b20aacc9b21d958151311268682822a6069.tar.gz gdb-4e885b20aacc9b21d958151311268682822a6069.tar.bz2 |
* printcmd.c (print_formatted): Handle references as for unformatted
prints.
Diffstat (limited to 'gdb/printcmd.c')
-rw-r--r-- | gdb/printcmd.c | 1 |
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 |