aboutsummaryrefslogtreecommitdiff
path: root/gdb/breakpoint.c
diff options
context:
space:
mode:
authorJean Marie Diaz <ambar@cygnus>1994-08-02 00:44:24 +0000
committerJean Marie Diaz <ambar@cygnus>1994-08-02 00:44:24 +0000
commitd2a85f11be4db16c760d94e182e83cc0c9aa85e8 (patch)
treee5aac3017cc4bc3ef69da7deb6723eeb561d62e5 /gdb/breakpoint.c
parente21679173eefda428299e4de9dfefcaac1b0ef9e (diff)
downloadgdb-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/breakpoint.c')
-rw-r--r--gdb/breakpoint.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
index a23afd4..9a1aba5 100644
--- a/gdb/breakpoint.c
+++ b/gdb/breakpoint.c
@@ -2149,6 +2149,11 @@ mention (b)
{
int say_where = 0;
+ /* FIXME: This is misplaced; mention() is called by things (like hitting a
+ watchpoint) other than breakpoint creation. It should be possible to
+ clean this up and at the same time replace the random calls to
+ breakpoint_changed with this hook, as has already been done for
+ delete_breakpoint_hook and so on. */
if (create_breakpoint_hook)
create_breakpoint_hook (b);
@@ -3238,8 +3243,6 @@ delete_breakpoint (bpt)
if (bpt->source_file != NULL)
free (bpt->source_file);
- breakpoints_changed ();
-
/* Be sure no bpstat's are pointing at it after it's been freed. */
/* FIXME, how can we find all bpstat's?
We just check stop_bpstat for now. */
@@ -3560,7 +3563,6 @@ enable_breakpoint (bpt)
error ("Hardware breakpoints used exceeds limit.");
}
bpt->enable = enabled;
- breakpoints_changed ();
check_duplicates (bpt->address);
if (bpt->type == bp_watchpoint || bpt->type == bp_hardware_watchpoint ||
@@ -3658,8 +3660,6 @@ disable_breakpoint (bpt)
bpt->enable = disabled;
- breakpoints_changed ();
-
check_duplicates (bpt->address);
}