aboutsummaryrefslogtreecommitdiff
path: root/gdb/tui/tui-winsource.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2019-06-16 17:51:34 -0600
committerTom Tromey <tom@tromey.com>2019-06-25 07:48:40 -0600
commit73fbdc65a1f3da143e604d95443dc11ee86af710 (patch)
tree439ecf379517fb48ff7e403c61c5313ecf3fe3ed /gdb/tui/tui-winsource.c
parent3332534318eb10a77e441307d28336996325558c (diff)
downloadgdb-73fbdc65a1f3da143e604d95443dc11ee86af710.zip
gdb-73fbdc65a1f3da143e604d95443dc11ee86af710.tar.gz
gdb-73fbdc65a1f3da143e604d95443dc11ee86af710.tar.bz2
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 <tom@tromey.com> * tui/tui-winsource.h (tui_set_exec_info_content): Return void. * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
Diffstat (limited to 'gdb/tui/tui-winsource.c')
-rw-r--r--gdb/tui/tui-winsource.c6
1 files changed, 1 insertions, 5 deletions
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;
}