diff options
author | Tom Tromey <tom@tromey.com> | 2019-11-10 10:33:07 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2019-11-10 10:33:07 -0700 |
commit | 0b026263ea17155b57f7763901894be2cbb6c3ff (patch) | |
tree | 08cf28cce14ce4ba3727a9081a8dfa30f1d43fa9 /gdb/tui/tui-command.h | |
parent | b049ce2d39fa793bf8b530e7345b81531e21eb52 (diff) | |
download | gdb-0b026263ea17155b57f7763901894be2cbb6c3ff.zip gdb-0b026263ea17155b57f7763901894be2cbb6c3ff.tar.gz gdb-0b026263ea17155b57f7763901894be2cbb6c3ff.tar.bz2 |
Remove can_highlight from TUI windows
Each TUI window has a "can_highlight" member. However, this has the
same meaning as "can_box" -- a window can be highlighted if and only
if it can be boxed. So, this patch removes can_highlight in favor of
simply using can_box.
gdb/ChangeLog
2019-11-10 Tom Tromey <tom@tromey.com>
* tui/tui-wingeneral.c (tui_unhighlight_win): Use can_box.
(tui_highlight_win): Likewise.
(tui_win_info::check_and_display_highlight_if_needed): Likewise.
* tui/tui-data.h (struct tui_win_info) <can_highlight>: Remove.
* tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
Don't set can_highlight.
Change-Id: I35916859070efcdfcc6e692c71cc6070956dcfce
Diffstat (limited to 'gdb/tui/tui-command.h')
-rw-r--r-- | gdb/tui/tui-command.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/gdb/tui/tui-command.h b/gdb/tui/tui-command.h index 7951694..6a276df 100644 --- a/gdb/tui/tui-command.h +++ b/gdb/tui/tui-command.h @@ -30,7 +30,6 @@ struct tui_cmd_window : public tui_win_info tui_cmd_window () : tui_win_info (CMD_WIN) { - can_highlight = false; } DISABLE_COPY_AND_ASSIGN (tui_cmd_window); |