From 7514a661283b9725ceeb4385be67b6b5d7702b2c Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Tue, 28 Dec 2021 14:10:11 -0700 Subject: Consistently Use ui_file parameter to show callbacks I happened to notice that one "show" callback was printing to gdb_stdout rather than to the passed-in ui_file parameter. I went through all such callbacks and fixed them to consistently use the ui_file. Regression tested on x86-64 Fedora 34. --- gdb/tui/tui-win.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gdb/tui/tui-win.c') diff --git a/gdb/tui/tui-win.c b/gdb/tui/tui-win.c index 8462d1e..d92c5fc 100644 --- a/gdb/tui/tui-win.c +++ b/gdb/tui/tui-win.c @@ -790,7 +790,7 @@ static void tui_show_tab_width (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value) { - fprintf_filtered (gdb_stdout, _("TUI tab width is %s spaces.\n"), value); + fprintf_filtered (file, _("TUI tab width is %s spaces.\n"), value); } @@ -814,7 +814,7 @@ static void tui_show_compact_source (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value) { - printf_filtered (_("TUI source window compactness is %s.\n"), value); + fprintf_filtered (file, _("TUI source window compactness is %s.\n"), value); } /* Set the tab width of the specified window. */ -- cgit v1.1