This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH 18/66] Change tui_data_window::display_regs to bool


This changes tui_data_window::display_regs to bool and updates the
uses.

gdb/ChangeLog
2019-06-23  Tom Tromey  <tom@tromey.com>

	* tui/tui-regs.c (tui_show_registers): Update.
	* tui/tui-data.h (struct tui_data_window) <display_regs>: Now
	bool.
	* tui/tui-data.c (tui_data_window::clear_detail)
	(tui_data_window): Update.
---
 gdb/ChangeLog      | 8 ++++++++
 gdb/tui/tui-data.c | 6 +++---
 gdb/tui/tui-data.h | 2 +-
 gdb/tui/tui-regs.c | 2 +-
 4 files changed, 13 insertions(+), 5 deletions(-)

diff --git a/gdb/tui/tui-data.c b/gdb/tui/tui-data.c
index 37aee67df0b..fe751574b95 100644
--- a/gdb/tui/tui-data.c
+++ b/gdb/tui/tui-data.c
@@ -195,7 +195,7 @@ tui_data_window::clear_detail ()
   regs_content = NULL;
   regs_content_count = 0;
   regs_column_count = 1;
-  display_regs = FALSE;
+  display_regs = false;
 }
 
 /* Accessor for the source execution info ptr.  */
@@ -503,7 +503,7 @@ tui_data_window::tui_data_window ()
   regs_content = NULL;
   regs_content_count = 0;
   regs_column_count = 1;
-  display_regs = FALSE;
+  display_regs = false;
   current_group = 0;
 }
 
@@ -621,7 +621,7 @@ tui_data_window::~tui_data_window ()
       data_content = NULL;
       data_content_count = 0;
       regs_column_count = 1;
-      display_regs = FALSE;
+      display_regs = false;
       generic.content = NULL;
       generic.content_size = 0;
     }
diff --git a/gdb/tui/tui-data.h b/gdb/tui/tui-data.h
index 6e50601dd9a..50e926c42ad 100644
--- a/gdb/tui/tui-data.h
+++ b/gdb/tui/tui-data.h
@@ -357,7 +357,7 @@ struct tui_data_window : public tui_win_info
   tui_win_content regs_content;	/* Start of regs display content.  */
   int regs_content_count;
   int regs_column_count;
-  int display_regs;		/* Should regs be displayed at all?  */
+  bool display_regs;		/* Should regs be displayed at all?  */
   struct reggroup *current_group;
 
 protected:
diff --git a/gdb/tui/tui-regs.c b/gdb/tui/tui-regs.c
index 451bcdfb364..d7940af984b 100644
--- a/gdb/tui/tui-regs.c
+++ b/gdb/tui/tui-regs.c
@@ -143,7 +143,7 @@ tui_show_registers (struct reggroup *group)
 
   /* Say that registers should be displayed, even if there is a
      problem.  */
-  TUI_DATA_WIN->display_regs = TRUE;
+  TUI_DATA_WIN->display_regs = true;
 
   if (target_has_registers && target_has_stack && target_has_memory)
     {
-- 
2.17.2


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]