diff options
author | Tom Tromey <tom@tromey.com> | 2019-07-06 08:21:38 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2019-08-15 12:29:28 -0600 |
commit | 65962b20b6df7e8961ec4002179dbd51a33a627f (patch) | |
tree | fe58f823af4202c3533085c1619c5a3267c82d89 /gdb/tui/tui-wingeneral.h | |
parent | 22a2ab04f58dc7c3f5fb0e6d8f0fa96ee4aa3951 (diff) | |
download | gdb-65962b20b6df7e8961ec4002179dbd51a33a627f.zip gdb-65962b20b6df7e8961ec4002179dbd51a33a627f.tar.gz gdb-65962b20b6df7e8961ec4002179dbd51a33a627f.tar.bz2 |
Simplify TUI boxing
In the TUI, whether or not a window can be boxed is a property of the
window's type. This adds a can_box method to the window classes, and
changes tui_make_window to defer to this, removing the "box_it"
paramter. This also lets us remove "enum tui_box", as it is no longer
used.
gdb/ChangeLog
2019-08-15 Tom Tromey <tom@tromey.com>
* tui/tui-wingeneral.h (tui_make_window): Update.
* tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
parameter.
(tui_gen_win_info::make_visible): Update.
* tui/tui-regs.c (tui_data_window::display_registers_from):
Update.
* tui/tui-layout.c (show_source_disasm_command)
(show_source_or_disasm_and_command): Update.
* tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
(enum tui_box): Remove.
(struct tui_win_info) <can_box>: New method.
* tui/tui-command.h (struct tui_cmd_window) <can_box>: New
method.
Diffstat (limited to 'gdb/tui/tui-wingeneral.h')
-rw-r--r-- | gdb/tui/tui-wingeneral.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/tui/tui-wingeneral.h b/gdb/tui/tui-wingeneral.h index 54d6eb6..6a9de4c 100644 --- a/gdb/tui/tui-wingeneral.h +++ b/gdb/tui/tui-wingeneral.h @@ -31,7 +31,7 @@ struct tui_gen_win_info; extern void tui_make_all_invisible (void); extern void tui_unhighlight_win (struct tui_win_info *); -extern void tui_make_window (struct tui_gen_win_info *, enum tui_box); +extern void tui_make_window (struct tui_gen_win_info *); extern void tui_highlight_win (struct tui_win_info *); extern void tui_refresh_all (); extern void tui_delete_win (WINDOW *window); |