From 0a909fdd47b94e2d2fd9c0387fb644a98cb35d3b Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Tue, 12 Dec 2023 19:22:07 -0700 Subject: 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 --- gdb/testsuite/gdb.tui/tui-missing-src.exp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gdb/testsuite') diff --git a/gdb/testsuite/gdb.tui/tui-missing-src.exp b/gdb/testsuite/gdb.tui/tui-missing-src.exp index 19da938..1929a1e 100644 --- a/gdb/testsuite/gdb.tui/tui-missing-src.exp +++ b/gdb/testsuite/gdb.tui/tui-missing-src.exp @@ -89,6 +89,8 @@ Term::check_box_contents "check source box is empty" \ Term::command "set pagination off" Term::command "start" Term::command "next" +Term::check_contents "next does not show source line" \ + "\\(gdb\\) next *\n\\(gdb\\)" Term::command "step" Term::check_contents "checking if inside f2 ()" "f2 \\(x=4\\)" Term::check_box_contents "f2.c must be displayed in source window" \ -- cgit v1.1