aboutsummaryrefslogtreecommitdiff
path: root/gdb/annotate.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/annotate.c')
-rw-r--r--gdb/annotate.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/gdb/annotate.c b/gdb/annotate.c
index 0a73fb5..4500923 100644
--- a/gdb/annotate.c
+++ b/gdb/annotate.c
@@ -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"
static void print_value_flags PARAMS ((struct type *));
@@ -519,3 +520,20 @@ 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;
+ enable_breakpoint_hook = breakpoint_changed;
+ disable_breakpoint_hook = breakpoint_changed;
+ }
+}