This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 38/66] Change tui_set_exec_info_content to return void
- From: Tom Tromey <tom at tromey dot com>
- To: gdb-patches at sourceware dot org
- Cc: Tom Tromey <tom at tromey dot com>
- Date: Sun, 23 Jun 2019 16:43:01 -0600
- Subject: [PATCH 38/66] Change tui_set_exec_info_content to return void
- References: <20190623224329.16060-1-tom@tromey.com>
tui_set_exec_info_content can't return an error, so change it to
return void instead.
2019-06-23 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.
---
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/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.17.2