From 73fbdc65a1f3da143e604d95443dc11ee86af710 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Sun, 16 Jun 2019 17:51:34 -0600 Subject: 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/tui/tui-winsource.c | 6 +----- gdb/tui/tui-winsource.h | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) (limited to 'gdb/tui') diff --git a/gdb/tui/tui-winsource.c b/gdb/tui/tui-winsource.c index 5e60e9e..2de5c53 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 ccc9ae5..3ed461a 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 *); -- cgit v1.1