From: Tom Tromey Date: Sun, 16 Jun 2019 20:04:11 +0000 (-0600) Subject: Change tui_data_window::display_regs to bool X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ceb13a13822b28d8e1cdc2e02975bb6569d3d8e6;p=binutils-gdb.git 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-25 Tom Tromey * tui/tui-regs.c (tui_show_registers): Update. * tui/tui-data.h (struct tui_data_window) : Now bool. * tui/tui-data.c (tui_data_window::clear_detail) (tui_data_window): Update. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 23a521dde84..62d12f04338 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,11 @@ +2019-06-25 Tom Tromey + + * tui/tui-regs.c (tui_show_registers): Update. + * tui/tui-data.h (struct tui_data_window) : Now + bool. + * tui/tui-data.c (tui_data_window::clear_detail) + (tui_data_window): Update. + 2019-06-25 Tom Tromey * tui/tui-windata.c (tui_display_all_data) diff --git a/gdb/tui/tui-data.c b/gdb/tui/tui-data.c index 48332fa4b75..5cdbc686480 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 0acc5abd154..962db0d89bd 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) {