aboutsummaryrefslogtreecommitdiff
path: root/gdb/tui
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2023-12-17 12:16:00 -0700
committerTom Tromey <tom@tromey.com>2024-02-08 12:16:07 -0700
commit59468aadf4b6af391723bef81ca7ca088b97e275 (patch)
treef67e88c141fae7e436641f203d5ff402d4425170 /gdb/tui
parenta6a25f5e2664872f2c3de707fffcb1669b03aeb1 (diff)
downloadgdb-59468aadf4b6af391723bef81ca7ca088b97e275.zip
gdb-59468aadf4b6af391723bef81ca7ca088b97e275.tar.gz
gdb-59468aadf4b6af391723bef81ca7ca088b97e275.tar.bz2
Return void from tui_show_frame_info
Nothing uses the tui_show_frame_info result any more, so change it to return void. Tested-By: Tom de Vries <tdevries@suse.de> Reviewed-By: Andrew Burgess <aburgess@redhat.com> Approved-By: Andrew Burgess <aburgess@redhat.com>
Diffstat (limited to 'gdb/tui')
-rw-r--r--gdb/tui/tui-status.c16
-rw-r--r--gdb/tui/tui-status.h2
2 files changed, 7 insertions, 11 deletions
diff --git a/gdb/tui/tui-status.c b/gdb/tui/tui-status.c
index e61bf71..df4675f 100644
--- a/gdb/tui/tui-status.c
+++ b/gdb/tui/tui-status.c
@@ -262,13 +262,11 @@ tui_status_window::rerender ()
wmove (handle.get (), 0, 0);
}
-/* Function to print the frame information for the TUI. The windows are
- refreshed only if frame information has changed since the last refresh.
+/* Function to print the frame information for the TUI. The windows
+ are refreshed only if frame information has changed since the last
+ refresh. */
- Return true if frame information has changed (and windows
- subsequently refreshed), false otherwise. */
-
-bool
+void
tui_show_frame_info (frame_info_ptr fi)
{
bool status_changed_p;
@@ -292,7 +290,7 @@ tui_show_frame_info (frame_info_ptr fi)
not changed. If frame information has not changed, then the windows'
contents will not change. So don't bother refreshing the windows. */
if (!status_changed_p)
- return false;
+ return;
for (struct tui_source_window_base *win_info : tui_source_windows ())
{
@@ -307,13 +305,11 @@ tui_show_frame_info (frame_info_ptr fi)
status_changed_p = tui_location.set_location (NULL, sal, "");
if (!status_changed_p)
- return false;
+ return;
for (struct tui_source_window_base *win_info : tui_source_windows ())
win_info->erase_source_content ();
}
-
- return true;
}
void
diff --git a/gdb/tui/tui-status.h b/gdb/tui/tui-status.h
index 4a0f59a..efef537 100644
--- a/gdb/tui/tui-status.h
+++ b/gdb/tui/tui-status.h
@@ -51,6 +51,6 @@ private:
};
extern void tui_show_status_content (void);
-extern bool tui_show_frame_info (frame_info_ptr);
+extern void tui_show_frame_info (frame_info_ptr);
#endif /* TUI_TUI_STATUS_H */