]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Remove tui_data_window::display_regs
authorTom Tromey <tom@tromey.com>
Sat, 13 Jul 2019 22:36:07 +0000 (16:36 -0600)
committerTom Tromey <tom@tromey.com>
Tue, 20 Aug 2019 22:45:50 +0000 (16:45 -0600)
There's no need for tui_data_window::display_regs any more (if there
ever was).  All the paths through data window construction will end up
setting this to true.  This patch removes the member.

2019-08-20  Tom Tromey  <tom@tromey.com>

* tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
* tui/tui-regs.c (tui_data_window::show_registers): Update.
(tui_data_window::check_register_values): Update.

gdb/ChangeLog
gdb/tui/tui-regs.c
gdb/tui/tui-regs.h

index b49f8fde3751f10898c8b9c4f9d28a1367a63f0f..91e0e90822605712bb9e84a3a12c5a5f4954f7a9 100644 (file)
@@ -1,3 +1,9 @@
+2019-08-20  Tom Tromey  <tom@tromey.com>
+
+       * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
+       * tui/tui-regs.c (tui_data_window::show_registers): Update.
+       (tui_data_window::check_register_values): Update.
+
 2019-08-20  Tom Tromey  <tom@tromey.com>
 
        * tui/tui-regs.h (struct tui_data_window): Use
index 675e1867d4be07cd511465d8795b3bf33ead6d19..f46894075d6040639193751a478484f922ebf3a2 100644 (file)
@@ -152,10 +152,6 @@ tui_data_window::show_registers (struct reggroup *group)
   if (group == 0)
     group = general_reggroup;
 
-  /* Say that registers should be displayed, even if there is a
-     problem.  */
-  display_regs = true;
-
   if (target_has_registers && target_has_stack && target_has_memory)
     {
       show_register_group (group, get_selected_frame (NULL),
@@ -533,7 +529,7 @@ tui_data_window::refresh_window ()
 void
 tui_data_window::check_register_values (struct frame_info *frame)
 {
-  if (regs_content.empty () && display_regs)
+  if (regs_content.empty ())
     show_registers (current_group);
   else
     {
index 24ec587ea2e94ded241f0bb56e05ee52649e486a..de445578807daedc62e92ce0b7857159992caf2c 100644 (file)
@@ -66,8 +66,6 @@ struct tui_data_window : public tui_win_info
   /* Windows that are used to display registers.  */
   std::vector<tui_data_item_window> regs_content;
   int regs_column_count = 0;
-  /* Should regs be displayed at all?  */
-  bool display_regs = false;
   struct reggroup *current_group = nullptr;
 
   /* Answer the number of the last line in the regs display.  If there