From 9c036bd836f66747ccd35f6a21a2758f0f2cb8fc Mon Sep 17 00:00:00 2001 From: Jim Kingdon Date: Tue, 17 May 1994 20:13:50 +0000 Subject: * utils.c (vfprintf_maybe_filtered, vfprintf_unfiltered): Call fputs_unfiltered and exit directly, rather than fatal. The latter calls vfprintf_unfiltered! * gdbtypes.h, gdbtypes.c (can_dereference): New function. * value.h, printcmd.c (print_value_flags): Move from here... * annotate.c: ...to here, and make it use can_dereference. --- gdb/annotate.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'gdb/annotate.c') diff --git a/gdb/annotate.c b/gdb/annotate.c index 73612aa..4276b84 100644 --- a/gdb/annotate.c +++ b/gdb/annotate.c @@ -21,7 +21,20 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #include "annotate.h" #include "value.h" #include "target.h" +#include "gdbtypes.h" + +static void print_value_flags PARAMS ((struct type *)); +static void +print_value_flags (t) + struct type *t; +{ + if (can_dereference (t)) + printf_filtered ("*"); + else + printf_filtered ("-"); +} + void breakpoints_changed () { -- cgit v1.1