]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Remove tui-out.[ch]
authorTom Tromey <tom@tromey.com>
Wed, 13 Dec 2023 02:22:07 +0000 (19:22 -0700)
committerTom Tromey <tom@tromey.com>
Mon, 11 Mar 2024 22:27:26 +0000 (16:27 -0600)
commit0a909fdd47b94e2d2fd9c0387fb644a98cb35d3b
tree1d0ff21d200755fde75cd1547bc18cf129f7082a
parent0824937af0c0822e629a7076c3f5dd39df3b16be
Remove tui-out.[ch]

The other day on irc, we were discussing the "m_line" hack in
tui-out.c, and I mentioned that it would be nice to replace this with
a new ui_out_flag.

Later, I looked at ui_out_flag and found:

      ui_source_list = (1 << 0),

... and sure enough, this is tested already.

This patch removes tui-out.[ch] and changes the TUI to use an ordinary
cli-out object without this flag set.

As far as I can tell, this doesn't affect behavior at all -- the TUI
tests all pass, and interactively I tried switching stack frames,
"list", etc, and it all seems to work.

New in v2: fixed the problem pointed out by Keith, and added a test
case for that scenario.

Reviewed-By: Andrew Burgess <aburgess@redhat.com>
gdb/Makefile.in
gdb/source.c
gdb/testsuite/gdb.tui/tui-missing-src.exp
gdb/tui/tui-io.c
gdb/tui/tui-out.c [deleted file]
gdb/tui/tui-out.h [deleted file]