aboutsummaryrefslogtreecommitdiff
path: root/gdb/tui/tui-hooks.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2019-06-16 14:43:56 -0600
committerTom Tromey <tom@tromey.com>2019-06-25 07:48:34 -0600
commitad54d15bdb71b05010ece1ef32ab22ab46794166 (patch)
treec111da3b4742438fd2c55474b7a4f1c38f3f0671 /gdb/tui/tui-hooks.c
parent2042b506c85274b4c652fbc9291be65b2550104d (diff)
downloadbinutils-ad54d15bdb71b05010ece1ef32ab22ab46794166.zip
binutils-ad54d15bdb71b05010ece1ef32ab22ab46794166.tar.gz
binutils-ad54d15bdb71b05010ece1ef32ab22ab46794166.tar.bz2
Introduce two TUI source window methods
This adds two methods to the TUI source window. These are just renamings of existing functions. It also changes the source window list to have a more precise type, letting the code be more type-safe. This will be useful again later. gdb/ChangeLog 2019-06-25 Tom Tromey <tom@tromey.com> * tui/tui-winsource.h (tui_refill_source_window) (tui_set_is_exec_point_at): Don't declare. * tui/tui-winsource.c (tui_update_source_windows_with_addr) (tui_source_window_base::refill): Rename from tui_refill_source_window. (tui_source_window_base::do_scroll_horizontal): Update. (tui_source_window_base::set_is_exec_point_at): Rename from tui_set_is_exec_point_at. (tui_update_all_breakpoint_info): Update. * tui/tui-stack.c (tui_show_frame_info): Update. * tui/tui-layout.c (show_data): Add cast. * tui/tui-hooks.c (tui_redisplay_source): Call refill method. * tui/tui-data.h (struct tui_source_window_base) <refill, set_is_exec_point_at>: New methods. (tui_source_windows, tui_add_to_source_windows): Update types. (tui_add_to_source_windows): Remove redundant declaration. * tui/tui-data.c (source_windows): Store tui_source_window_base. (tui_source_windows): Change return type. (tui_clear_source_windows_detail): Update. (tui_add_to_source_windows): Change type of parameter. (tui_free_all_source_wins_content): Update.
Diffstat (limited to 'gdb/tui/tui-hooks.c')
-rw-r--r--gdb/tui/tui-hooks.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/tui/tui-hooks.c b/gdb/tui/tui-hooks.c
index 4a1d79e..7e94a13 100644
--- a/gdb/tui/tui-hooks.c
+++ b/gdb/tui/tui-hooks.c
@@ -212,7 +212,7 @@ tui_redisplay_source ()
if (tui_is_window_visible (SRC_WIN))
{
/* Force redisplay. */
- tui_refill_source_window (tui_win_list[SRC_WIN]);
+ TUI_SRC_WIN->refill ();
}
}