From 73fbdc65a1f3da143e604d95443dc11ee86af710 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Sun, 16 Jun 2019 17:51:34 -0600 Subject: [PATCH] Change tui_set_exec_info_content to return void tui_set_exec_info_content can't return an error, so change it to return void instead. gdb/ChangeLog 2019-06-25 Tom Tromey * tui/tui-winsource.h (tui_set_exec_info_content): Return void. * tui/tui-winsource.c (tui_set_exec_info_content): Return void. --- gdb/ChangeLog | 5 +++++ gdb/tui/tui-winsource.c | 6 +----- gdb/tui/tui-winsource.h | 2 +- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index feec185ffb2..dc3a4496785 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2019-06-25 Tom Tromey + + * tui/tui-winsource.h (tui_set_exec_info_content): Return void. + * tui/tui-winsource.c (tui_set_exec_info_content): Return void. + 2019-06-25 Tom Tromey * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL diff --git a/gdb/tui/tui-winsource.c b/gdb/tui/tui-winsource.c index 5e60e9e3726..2de5c53214e 100644 --- a/gdb/tui/tui-winsource.c +++ b/gdb/tui/tui-winsource.c @@ -482,11 +482,9 @@ tui_update_breakpoint_info (struct tui_win_info *win, /* Function to initialize the content of the execution info window, based upon the input window which is either the source or disassembly window. */ -enum tui_status +void tui_set_exec_info_content (struct tui_win_info *win_info) { - enum tui_status ret = TUI_SUCCESS; - tui_source_window_base *base = (tui_source_window_base *) win_info; if (base->execution_info != NULL) { @@ -530,8 +528,6 @@ tui_set_exec_info_content (struct tui_win_info *win_info) } exec_info_ptr->content_size = win_info->content_size; } - - return ret; } diff --git a/gdb/tui/tui-winsource.h b/gdb/tui/tui-winsource.h index ccc9ae5f68a..3ed461a3157 100644 --- a/gdb/tui/tui-winsource.h +++ b/gdb/tui/tui-winsource.h @@ -53,7 +53,7 @@ extern void tui_update_source_windows_with_line (struct symtab *, extern void tui_clear_source_content (struct tui_win_info *, int); extern void tui_erase_source_content (struct tui_win_info *, int); extern void tui_show_source_content (struct tui_win_info *); -extern enum tui_status tui_set_exec_info_content (struct tui_win_info *); +extern void tui_set_exec_info_content (struct tui_win_info *); extern void tui_show_exec_info_content (struct tui_win_info *); extern void tui_erase_exec_info_content (struct tui_win_info *); extern void tui_clear_exec_info_content (struct tui_win_info *); -- 2.30.2