Make TUI borders respect "set style enabled"
authorTom Tromey <tom@tromey.com>
Sat, 4 Jan 2020 21:35:02 +0000 (14:35 -0700)
committerTom Tromey <tom@tromey.com>
Sat, 11 Jan 2020 19:24:03 +0000 (12:24 -0700)
commit7c392d1de1400202eb86f7679628c4b7c14f8108
treeec0d6e501239764317bfeffd2020997254b70bec
parentef96a356b87730e05257297ad853ae4225c90c61
Make TUI borders respect "set style enabled"

When adding support for styling the TUI borders, I neglected to have
this code check cli_styling.  As a result, "set style enabled off"
does not affect the borders.

This patch fixes this oversight.  While doing this, I found that
running gdb without an executable, enabling the TUI, and then trying
"set style enabled off" would fail with the mysterious "No registers".
The fix for this is to use deprecated_safe_get_selected_frame in
tui_source_window_base::refill.

gdb/ChangeLog
2020-01-11  Tom Tromey  <tom@tromey.com>

* tui/tui-wingeneral.c (box_win): Check cli_styling.
* tui/tui-winsource.c (tui_source_window_base::refill): Use
deprecated_safe_get_selected_frame.

Change-Id: I36acda25dd9014d994d366b4a0e8faee9d95d0f8
gdb/ChangeLog
gdb/tui/tui-wingeneral.c
gdb/tui/tui-winsource.c
This page took 0.024388 seconds and 4 git commands to generate.