diff options
author | Patrick Palka <patrick@parcs.ath.cx> | 2015-07-02 12:27:50 -0400 |
---|---|---|
committer | Patrick Palka <patrick@parcs.ath.cx> | 2015-07-08 14:44:30 -0400 |
commit | a9bd710f8777b5f4d6cbb9f5f14d6eb16f60c690 (patch) | |
tree | a3c9fb1dc7e9594ba8c834e94baf7e88e1cf0fb7 /gdb/interps.c | |
parent | 328e7bfdde7267f5e4b971bc6dca7b82aef77661 (diff) | |
download | gdb-a9bd710f8777b5f4d6cbb9f5f14d6eb16f60c690.zip gdb-a9bd710f8777b5f4d6cbb9f5f14d6eb16f60c690.tar.gz gdb-a9bd710f8777b5f4d6cbb9f5f14d6eb16f60c690.tar.bz2 |
tui: replace deprecated_register_changed_hook with observer
This is a straightforward replacement of the TUI's use of the
aforementioned hook with the register_changed observer. Since this was
the only user of the hook, this patch also removes the hook.
gdb/ChangeLog:
* defs.h (deprecated_register_changed_hook): Remove prototype.
* interps.c (clear_iterpreter_hooks): Remove reference to
deprecated_register_changed_hook.
* top.c (deprecated_register_changed_hook): Remove prototype.
* valops.c (value_assign): Remove reference to
deprecated_register_changed_hook.
* tui/tui-hooks.c (tui_register_changed): Add parameter "frame".
Add comment documenting the function.
(tui_register_changed_observer): Define.
(tui_install_hooks): Remove reference to
deprecated_register_changed_hook. Set
tui_register_changed_observer.
(tui_remove_hooks): Remove reference to
deprecated_register_changed_hook. Unset
tui_register_changed_observer.
Diffstat (limited to 'gdb/interps.c')
-rw-r--r-- | gdb/interps.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/gdb/interps.c b/gdb/interps.c index 4c1e6cc..d825e14 100644 --- a/gdb/interps.c +++ b/gdb/interps.c @@ -370,7 +370,6 @@ clear_interpreter_hooks (void) deprecated_readline_begin_hook = 0; deprecated_readline_hook = 0; deprecated_readline_end_hook = 0; - deprecated_register_changed_hook = 0; deprecated_context_hook = 0; deprecated_target_wait_hook = 0; deprecated_call_command_hook = 0; |