diff options
author | Jean Marie Diaz <ambar@cygnus> | 1994-08-02 00:44:24 +0000 |
---|---|---|
committer | Jean Marie Diaz <ambar@cygnus> | 1994-08-02 00:44:24 +0000 |
commit | d2a85f11be4db16c760d94e182e83cc0c9aa85e8 (patch) | |
tree | e5aac3017cc4bc3ef69da7deb6723eeb561d62e5 /gdb/annotate.c | |
parent | e21679173eefda428299e4de9dfefcaac1b0ef9e (diff) | |
download | gdb-d2a85f11be4db16c760d94e182e83cc0c9aa85e8.zip gdb-d2a85f11be4db16c760d94e182e83cc0c9aa85e8.tar.gz gdb-d2a85f11be4db16c760d94e182e83cc0c9aa85e8.tar.bz2 |
* 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.
Diffstat (limited to 'gdb/annotate.c')
-rw-r--r-- | gdb/annotate.c | 18 |
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; + } +} |