aboutsummaryrefslogtreecommitdiff
path: root/gdb/tui/tui-io.c
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/tui/tui-io.c
parent0824937af0c0822e629a7076c3f5dd39df3b16be (diff)
downloadgdb-0a909fdd47b94e2d2fd9c0387fb644a98cb35d3b.zip
gdb-0a909fdd47b94e2d2fd9c0387fb644a98cb35d3b.tar.gz
gdb-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/tui/tui-io.c')
-rw-r--r--gdb/tui/tui-io.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gdb/tui/tui-io.c b/gdb/tui/tui-io.c
index 94554fd..ba07e3d 100644
--- a/gdb/tui/tui-io.c
+++ b/gdb/tui/tui-io.c
@@ -33,7 +33,6 @@
#include "tui/tui-win.h"
#include "tui/tui-wingeneral.h"
#include "tui/tui-file.h"
-#include "tui/tui-out.h"
#include "ui-out.h"
#include "cli-out.h"
#include <fcntl.h>
@@ -917,7 +916,7 @@ tui_initialize_io (void)
tui_stdout = new pager_file (new tui_file (stdout, true));
tui_stderr = new tui_file (stderr, false);
tui_stdlog = new timestamped_file (tui_stderr);
- tui_out = new tui_ui_out (tui_stdout);
+ tui_out = new cli_ui_out (tui_stdout, 0);
/* Create the default UI. */
tui_old_uiout = new cli_ui_out (gdb_stdout);