tui: replace deprecated_register_changed_hook with observer
authorPatrick Palka <patrick@parcs.ath.cx>
Thu, 2 Jul 2015 16:27:50 +0000 (12:27 -0400)
committerPatrick Palka <patrick@parcs.ath.cx>
Wed, 8 Jul 2015 18:44:30 +0000 (14:44 -0400)
commita9bd710f8777b5f4d6cbb9f5f14d6eb16f60c690
treea3c9fb1dc7e9594ba8c834e94baf7e88e1cf0fb7
parent328e7bfdde7267f5e4b971bc6dca7b82aef77661
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.
gdb/ChangeLog
gdb/defs.h
gdb/interps.c
gdb/top.c
gdb/tui/tui-hooks.c
gdb/valops.c