From d2a85f11be4db16c760d94e182e83cc0c9aa85e8 Mon Sep 17 00:00:00 2001 From: Jean Marie Diaz Date: Tue, 2 Aug 1994 00:44:24 +0000 Subject: * breakpoint.c (mention), main.c (fputs_unfiltered): Add comments. * breakpoint.c (delete_breakpoint, enable_breakpoint, disable_breakpoint): Don't call breakpoints_changed; it is now called via the *_breakpoint_hook functions. * annotate.c (_initialize_annotate, breakpoint_changed): New functions. --- gdb/annotate.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'gdb/annotate.c') 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; + } +} -- cgit v1.1