* printcmd.c (print_formatted): Handle references as for unformatted
authorJoel Brobecker <brobecker@gnat.com>
Wed, 30 Jan 2008 19:19:51 +0000 (19:19 +0000)
committerJoel Brobecker <brobecker@gnat.com>
Wed, 30 Jan 2008 19:19:51 +0000 (19:19 +0000)
        prints.

gdb/ChangeLog
gdb/printcmd.c

index 1c60b60c2f713b46fcd301db7a69c537f822317c..b80da0ea82644d4ac4c1e8716b59d4b51b1c172e 100644 (file)
@@ -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
index 68c2a54e55072ec90cfbea86e5e9a7aa66141312..e73c511e673626a739e4bc0eba6e7bff62356c5b 100644 (file)
@@ -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