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/infcmd.c | |
parent | de4686ffaff8bade61657078990f392b3aa14ff4 (diff) | |
download | binutils-7514a661283b9725ceeb4385be67b6b5d7702b2c.zip binutils-7514a661283b9725ceeb4385be67b6b5d7702b2c.tar.gz binutils-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/infcmd.c')
-rw-r--r-- | gdb/infcmd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/infcmd.c b/gdb/infcmd.c index a3752cc..d00a70c 100644 --- a/gdb/infcmd.c +++ b/gdb/infcmd.c @@ -117,7 +117,7 @@ show_inferior_tty_command (struct ui_file *file, int from_tty, directly. */ const std::string &inferior_tty = current_inferior ()->tty (); - fprintf_filtered (gdb_stdout, + fprintf_filtered (file, _("Terminal for future runs of program being debugged " "is \"%s\".\n"), inferior_tty.c_str ()); } @@ -177,13 +177,13 @@ show_cwd_command (struct ui_file *file, int from_tty, const std::string &cwd = current_inferior ()->cwd (); if (cwd.empty ()) - fprintf_filtered (gdb_stdout, + fprintf_filtered (file, _("\ You have not set the inferior's current working directory.\n\ The inferior will inherit GDB's cwd if native debugging, or the remote\n\ server's cwd if remote debugging.\n")); else - fprintf_filtered (gdb_stdout, + fprintf_filtered (file, _("Current working directory that will be used " "when starting the inferior is \"%s\".\n"), cwd.c_str ()); |