diff options
author | Tom Tromey <tromey@redhat.com> | 2008-07-28 17:53:52 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2008-07-28 17:53:52 +0000 |
commit | 7f4b89d1b63f8ba812b911639f264b8e7ff51285 (patch) | |
tree | 9f6fcf202733155f065bdb221bddc5f98c7b8a3f /gdb/breakpoint.c | |
parent | 8641e68297c9812b59ab59f786c00087d15feec9 (diff) | |
download | gdb-7f4b89d1b63f8ba812b911639f264b8e7ff51285.zip gdb-7f4b89d1b63f8ba812b911639f264b8e7ff51285.tar.gz gdb-7f4b89d1b63f8ba812b911639f264b8e7ff51285.tar.bz2 |
* annotate.h (deprecated_annotate_starting_hook): Remove.
(deprecated_annotate_stopped_hook): Remove.
(deprecated_annotate_exited_hook): Remove.
* Makefile.in (annotate.o): Depend on observer_h.
* top.c (deprecated_delete_breakpoint_hook): Remove.
(deprecated_create_breakpoint_hook): Likewise.
(deprecated_modify_breakpoint_hook): Likewise.
* interps.c (clear_interpreter_hooks): Update for removed hooks.
* breakpoint.c (mention): Don't call removed hook.
(delete_breakpoint): Likewise.
(disable_breakpoint): Likewise.
(do_enable_breakpoint): Likewise.
* annotate.c: Include observer.h.
(breakpoint_changed): Change type of argument.
(_initialize_annotate): Register observers.
(deprecated_annotate_starting_hook): Remove.
(deprecated_annotate_stopped_hook): Remove.
(deprecated_annotate_exited_hook): Remove.
(annotate_starting): Update for hook removal.
(annotate_stopped): Likewise.
(annotate_exited): Likewise.
* defs.h (deprecated_delete_breakpoint_hook): Remove.
(deprecated_create_breakpoint_hook): Likewise.
(deprecated_modify_breakpoint_hook): Likewise.
Diffstat (limited to 'gdb/breakpoint.c')
-rw-r--r-- | gdb/breakpoint.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index 3324f20..5f2404d 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -4890,10 +4890,7 @@ mention (struct breakpoint *b) /* 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 deprecated_delete_breakpoint_hook and so on. */ - if (deprecated_create_breakpoint_hook) - deprecated_create_breakpoint_hook (b); + random calls to breakpoint_changed with this hook. */ observer_notify_breakpoint_created (b->number); if (b->ops != NULL && b->ops->print_mention != NULL) @@ -7213,8 +7210,6 @@ delete_breakpoint (struct breakpoint *bpt) if (bpt->type == bp_none) return; - if (deprecated_delete_breakpoint_hook) - deprecated_delete_breakpoint_hook (bpt); observer_notify_breakpoint_deleted (bpt->number); if (breakpoint_chain == bpt) @@ -7868,8 +7863,6 @@ disable_breakpoint (struct breakpoint *bpt) update_global_location_list (0); - if (deprecated_modify_breakpoint_hook) - deprecated_modify_breakpoint_hook (bpt); observer_notify_breakpoint_modified (bpt->number); } @@ -7993,8 +7986,6 @@ have been allocated for other watchpoints.\n"), bpt->number); update_global_location_list (1); breakpoints_changed (); - if (deprecated_modify_breakpoint_hook) - deprecated_modify_breakpoint_hook (bpt); observer_notify_breakpoint_modified (bpt->number); } |