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/top.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/top.c')
-rw-r--r-- | gdb/top.c | 5 |
1 files changed, 0 insertions, 5 deletions
@@ -221,11 +221,6 @@ void (*deprecated_detach_hook) (void); void (*deprecated_interactive_hook) (void); -/* Tell the GUI someone changed the register REGNO. -1 means - that the caller does not know which register changed or - that several registers have changed (see value_assign). */ -void (*deprecated_register_changed_hook) (int regno); - /* Called when going to wait for the target. Usually allows the GUI to run while waiting for target events. */ |