* 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.
This commit is contained in:
Jean Marie Diaz
1994-08-02 00:44:24 +00:00
parent e21679173e
commit d2a85f11be
3 changed files with 31 additions and 5 deletions

View 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"
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;
}
}