aboutsummaryrefslogtreecommitdiff
path: root/gdb/annotate.c
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1994-05-17 20:13:50 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1994-05-17 20:13:50 +0000
commit9c036bd836f66747ccd35f6a21a2758f0f2cb8fc (patch)
tree70899574fb9676d917fe7ce6b6a24f3ffca34ab5 /gdb/annotate.c
parentee8b83460016b61902117b463dfdd6d0323ce3ac (diff)
downloadbinutils-9c036bd836f66747ccd35f6a21a2758f0f2cb8fc.zip
binutils-9c036bd836f66747ccd35f6a21a2758f0f2cb8fc.tar.gz
binutils-9c036bd836f66747ccd35f6a21a2758f0f2cb8fc.tar.bz2
* 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.
Diffstat (limited to 'gdb/annotate.c')
-rw-r--r--gdb/annotate.c13
1 files changed, 13 insertions, 0 deletions
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 ()
{