From 9e74bde4c250080f406ddf64587687162571c6c4 Mon Sep 17 00:00:00 2001 From: Joel Brobecker Date: Wed, 30 Jan 2008 19:19:51 +0000 Subject: [PATCH] * printcmd.c (print_formatted): Handle references as for unformatted prints. --- gdb/ChangeLog | 5 +++++ gdb/printcmd.c | 1 + 2 files changed, 6 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 1c60b60c2f..b80da0ea82 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2008-01-08 Paul Hilfinger + + * printcmd.c (print_formatted): Handle references as for unformatted + prints. + 2008-01-30 Joel Brobecker * eval.c (evaluate_subexp_standard): Add handling of user diff --git a/gdb/printcmd.c b/gdb/printcmd.c index 68c2a54e55..e73c511e67 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 -- 2.11.0