aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2023-12-12 19:22:07 -0700
committerTom Tromey <tom@tromey.com>2024-03-11 16:27:26 -0600
commit0a909fdd47b94e2d2fd9c0387fb644a98cb35d3b (patch)
tree1d0ff21d200755fde75cd1547bc18cf129f7082a /gdb/testsuite
parent0824937af0c0822e629a7076c3f5dd39df3b16be (diff)
downloadbinutils-0a909fdd47b94e2d2fd9c0387fb644a98cb35d3b.zip
binutils-0a909fdd47b94e2d2fd9c0387fb644a98cb35d3b.tar.gz
binutils-0a909fdd47b94e2d2fd9c0387fb644a98cb35d3b.tar.bz2
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>
Diffstat (limited to 'gdb/testsuite')
-rw-r--r--gdb/testsuite/gdb.tui/tui-missing-src.exp2
1 files changed, 2 insertions, 0 deletions
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" \