mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-28 23:39:35 +08:00
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 <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.
This commit is contained in:
@ -1,3 +1,11 @@
|
||||
2019-06-25 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.
|
||||
|
||||
2019-06-25 Tom Tromey <tom@tromey.com>
|
||||
|
||||
* tui/tui-windata.c (tui_display_all_data)
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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:
|
||||
|
@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user