* valprint.c (print_longest): Fix a syntax error in #ifdef
[deliverable/binutils-gdb.git] / gdb / annotate.c
index 4276b849d5626f07bba26af36f016598db89938e..470a486d593fb7f65d925479a93fb4601c2d62f4 100644 (file)
@@ -22,6 +22,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
 #include "value.h"
 #include "target.h"
 #include "gdbtypes.h"
+#include "breakpoint.h"
 \f
 static void print_value_flags PARAMS ((struct type *));
 
@@ -65,7 +66,9 @@ void
 annotate_starting ()
 {
   if (annotation_level > 1)
-    printf_filtered ("\n\032\032starting\n");
+    {
+      printf_filtered ("\n\032\032starting\n");
+    }
 }
 
 void
@@ -201,7 +204,7 @@ void
 annotate_field_end ()
 {
   if (annotation_level > 1)
-    printf_filtered ("\n\032\032field-value\n");
+    printf_filtered ("\n\032\032field-end\n");
 }
 \f
 void
@@ -519,3 +522,19 @@ annotate_array_section_end ()
     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;
+      modify_breakpoint_hook = breakpoint_changed;
+    }
+}
This page took 0.023671 seconds and 4 git commands to generate.