aboutsummaryrefslogtreecommitdiff
path: root/gdb/tui/tui.h
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2019-12-30 09:07:33 -0700
committerTom Tromey <tom@tromey.com>2019-12-30 09:07:33 -0700
commit87d557ae1b944a21c86e3148daadeb4469b8cda9 (patch)
tree7826816491a02cdcd44992e18a0c279d9355d8c9 /gdb/tui/tui.h
parenta7ac9aa525de25d3bc6e7bfd37615092a4f94055 (diff)
downloadgdb-87d557ae1b944a21c86e3148daadeb4469b8cda9.zip
gdb-87d557ae1b944a21c86e3148daadeb4469b8cda9.tar.gz
gdb-87d557ae1b944a21c86e3148daadeb4469b8cda9.tar.bz2
Use "bool" in more spots in TUI
This changes a few spots in the TUI to use "bool" rather than "int". Tested on x86-64 Fedora 28. gdb/ChangeLog 2019-12-30 Tom Tromey <tom@tromey.com> * tui/tui-interp.c (tui_start_enabled): Now bool. (_initialize_tui_interp): Update. * tui/tui-hooks.c (tui_refreshing_registers): Now bool. (tui_register_changed) (tui_refresh_frame_and_register_information): Update. * tui/tui-win.c (tui_update_variables): Return bool. * tui/tui-win.h (tui_update_variables): Return bool. * tui/tui.c (tui_get_command_dimension): Return bool. * tui/tui.h (tui_get_command_dimension): Return bool. Change-Id: I55b7f2d62d2ef88da3587dc914ada9f463ad8d2b
Diffstat (limited to 'gdb/tui/tui.h')
-rw-r--r--gdb/tui/tui.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/tui/tui.h b/gdb/tui/tui.h
index 14f2939..75574e5 100644
--- a/gdb/tui/tui.h
+++ b/gdb/tui/tui.h
@@ -49,8 +49,8 @@ extern CORE_ADDR tui_get_low_disassembly_address (struct gdbarch *,
CORE_ADDR, CORE_ADDR);
extern void tui_show_assembly (struct gdbarch *gdbarch, CORE_ADDR addr);
extern bool tui_is_window_visible (enum tui_win_type type);
-extern int tui_get_command_dimension (unsigned int *width,
- unsigned int *height);
+extern bool tui_get_command_dimension (unsigned int *width,
+ unsigned int *height);
/* Initialize readline and configure the keymap for the switching
key shortcut. */