diff options
author | Tom Tromey <tom@tromey.com> | 2021-12-28 14:10:11 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2021-12-29 11:08:04 -0700 |
commit | 7514a661283b9725ceeb4385be67b6b5d7702b2c (patch) | |
tree | ec1a988096fef8b15609413267729f3a0b7c7194 /gdb/tui | |
parent | de4686ffaff8bade61657078990f392b3aa14ff4 (diff) | |
download | gdb-7514a661283b9725ceeb4385be67b6b5d7702b2c.zip gdb-7514a661283b9725ceeb4385be67b6b5d7702b2c.tar.gz gdb-7514a661283b9725ceeb4385be67b6b5d7702b2c.tar.bz2 |
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.
Diffstat (limited to 'gdb/tui')
-rw-r--r-- | gdb/tui/tui-win.c | 4 |
1 files changed, 2 insertions, 2 deletions
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. */ |