diff options
author | Tom Tromey <tom@tromey.com> | 2019-07-24 15:42:27 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2019-09-20 13:49:07 -0600 |
commit | b5457826744f08208a4c29addbbc26c7c877c485 (patch) | |
tree | 47e7b005ae12d962e44b7796558d21a5d3f4dc5c /gdb/tui | |
parent | 6b915f7d0caf868c037c387aa4feef0c7085cb48 (diff) | |
download | gdb-b5457826744f08208a4c29addbbc26c7c877c485.zip gdb-b5457826744f08208a4c29addbbc26c7c877c485.tar.gz gdb-b5457826744f08208a4c29addbbc26c7c877c485.tar.bz2 |
Use "bool" in tui_data_window::show_register_group
This changes tui_data_window::show_register_group to use "bool" rather
than "int".
gdb/ChangeLog
2019-09-20 Tom Tromey <tom@tromey.com>
* tui/tui-regs.h (struct tui_data_window) <show_register_group>:
Change type of "refresh_values_only".
* tui/tui-regs.c (tui_data_window::show_register_group): Change
type of "refresh_values_only".
Diffstat (limited to 'gdb/tui')
-rw-r--r-- | gdb/tui/tui-regs.c | 4 | ||||
-rw-r--r-- | gdb/tui/tui-regs.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/gdb/tui/tui-regs.c b/gdb/tui/tui-regs.c index 48e78fc..0485d04 100644 --- a/gdb/tui/tui-regs.c +++ b/gdb/tui/tui-regs.c @@ -166,12 +166,12 @@ tui_data_window::show_registers (struct reggroup *group) /* Set the data window to display the registers of the register group using the given frame. Values are refreshed only when - refresh_values_only is TRUE. */ + refresh_values_only is true. */ void tui_data_window::show_register_group (struct reggroup *group, struct frame_info *frame, - int refresh_values_only) + bool refresh_values_only) { struct gdbarch *gdbarch = get_frame_arch (frame); int nr_regs; diff --git a/gdb/tui/tui-regs.h b/gdb/tui/tui-regs.h index abf44c8..73572ef 100644 --- a/gdb/tui/tui-regs.h +++ b/gdb/tui/tui-regs.h @@ -108,7 +108,7 @@ private: void show_register_group (struct reggroup *group, struct frame_info *frame, - int refresh_values_only); + bool refresh_values_only); /* Answer the number of the last line in the regs display. If there are no registers (-1) is returned. */ |