aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2019-07-11 23:24:03 -0600
committerTom Tromey <tom@tromey.com>2019-08-16 11:28:34 -0600
commite699d33164a59dcfe7ad4a5154e5c6c811c1f958 (patch)
tree3ec2f0b27499b7dc87ffed7e42f7f9ec0a90dddc /gdb
parentbb01dbfc041dccab2f2a2818068158f61b4c0fe2 (diff)
downloadgdb-e699d33164a59dcfe7ad4a5154e5c6c811c1f958.zip
gdb-e699d33164a59dcfe7ad4a5154e5c6c811c1f958.tar.gz
gdb-e699d33164a59dcfe7ad4a5154e5c6c811c1f958.tar.bz2
Remove useless assignment from tui_remove_hooks
tui_remove_hooks clears deprecated_query_hook, but nothing in the TUI ever sets it; so remove the assignment. gdb/ChangeLog 2019-08-16 Tom Tromey <tom@tromey.com> * tui/tui-hooks.c (tui_remove_hooks): Don't set deprecated_query_hook.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/tui/tui-hooks.c1
2 files changed, 5 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 1dfe43d..7bce482 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
2019-08-16 Tom Tromey <tom@tromey.com>
+ * tui/tui-hooks.c (tui_remove_hooks): Don't set
+ deprecated_query_hook.
+
+2019-08-16 Tom Tromey <tom@tromey.com>
+
* tui/tui-winsource.c (tui_update_source_windows_with_addr)
(tui_update_source_windows_with_line): Update.
* tui/tui-source.h (struct tui_source_window)
diff --git a/gdb/tui/tui-hooks.c b/gdb/tui/tui-hooks.c
index a2d06f8..5cc90dd 100644
--- a/gdb/tui/tui-hooks.c
+++ b/gdb/tui/tui-hooks.c
@@ -260,7 +260,6 @@ void
tui_remove_hooks (void)
{
deprecated_print_frame_info_listing_hook = 0;
- deprecated_query_hook = 0;
/* Remove our observers. */
tui_attach_detach_observers (false);