#include "annotate.h"
#include "value.h"
#include "target.h"
+#include "gdbtypes.h"
+#include "breakpoint.h"
+\f
+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 ("-");
+}
+\f
void
breakpoints_changed ()
{
annotate_starting ()
{
if (annotation_level > 1)
- printf_filtered ("\n\032\032starting\n");
+ {
+ printf_filtered ("\n\032\032starting\n");
+ /* The starting annotation needs to appear before any output
+ from the inferior process. */
+ gdb_flush (gdb_stdout);
+ }
}
void
annotate_field_end ()
{
if (annotation_level > 1)
- printf_filtered ("\n\032\032field-value\n");
+ printf_filtered ("\n\032\032field-end\n");
}
\f
void
printf_filtered ("\n\032\032array-section-end\n");
}
+static void
+breakpoint_changed (b)
+ struct breakpoint *b;
+{
+ breakpoints_changed ();
+}
+
+void
+_initialize_annotate ()
+{
+ if (annotation_level > 1)
+ {
+ delete_breakpoint_hook = breakpoint_changed;
+ enable_breakpoint_hook = breakpoint_changed;
+ disable_breakpoint_hook = breakpoint_changed;
+ }
+}