Make "file" clear TUI source window
authorTom Tromey <tom@tromey.com>
Sat, 21 Dec 2019 18:14:56 +0000 (11:14 -0700)
committerTom Tromey <tom@tromey.com>
Sun, 19 Jan 2020 20:08:48 +0000 (13:08 -0700)
commit4f13c1c00be32131845ae50aef788d4f2c652dff
tree2d269ef25cb784be2931a85b69a01bfd3bbc2e75
parentfa47e4463ab4ee4ddc7858ab11063c7965b232ac
Make "file" clear TUI source window

I noticed that a plain "file" will leave the current source file in
the TUI source window.  Instead, I think, it should clear the source
window.  This patch implements this.

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

* tui/tui-winsource.c (tui_update_source_windows_with_line):
Handle case where symtab is null.

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

* gdb.tui/main.exp: Add check for plain "file".

Change-Id: I8424acf837f1a47f75bc6a833d1e917d4c10b51e
gdb/ChangeLog
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.tui/main.exp
gdb/tui/tui-winsource.c
This page took 0.033487 seconds and 4 git commands to generate.