Fix C-x 1 from gdb prompt
authorTom Tromey <tom@tromey.com>
Tue, 16 Jun 2020 23:55:57 +0000 (17:55 -0600)
committerTom Tromey <tom@tromey.com>
Wed, 17 Jun 2020 00:02:20 +0000 (18:02 -0600)
commit39ec04904ff172dd67fd43ed3720f26d854732bf
treef0c00c8c4b85c4e340393aa70bd04b7264b4aa52
parent1ce22eebea40573551c2db2e7c83951154d14c81
Fix C-x 1 from gdb prompt

Pedro pointed out on irc that C-x 1 from the gdb prompt will cause a
crash.  This happened because of a bug in remove_windows -- it would
always remove all the windows from the layout.  This patch fixes this
bug, and also arranges to have C-x 1 preserve the status window.

gdb/ChangeLog
2020-06-16  Tom Tromey  <tom@tromey.com>

* tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
Also preserve the status window.
gdb/ChangeLog
gdb/tui/tui-layout.c
This page took 0.025524 seconds and 4 git commands to generate.