]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Return void from tui_show_frame_info
authorTom Tromey <tom@tromey.com>
Sun, 17 Dec 2023 19:16:00 +0000 (12:16 -0700)
committerTom Tromey <tom@tromey.com>
Thu, 8 Feb 2024 19:16:07 +0000 (12:16 -0700)
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>
gdb/tui/tui-status.c
gdb/tui/tui-status.h

index e61bf71c600bd0e64eae1f51232b6c82c5c8c5b1..df4675fe5dfbbd816b36325c1ff0b6169a956081 100644 (file)
@@ -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
index 4a0f59a2eaa61b38527d7fbd23b3252ebd0ccba3..efef5375e86eb1c925648eac596d9549232b1317 100644 (file)
@@ -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 */