public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] gdb/show_args_command: print to the ui_file argument
@ 2023-05-03 15:31 Lancelot SIX
0 siblings, 0 replies; only message in thread
From: Lancelot SIX @ 2023-05-03 15:31 UTC (permalink / raw)
To: gdb-cvs
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=2ad00a4b42f89b61fdab24940b67713daf81c988
commit 2ad00a4b42f89b61fdab24940b67713daf81c988
Author: Lancelot SIX <lancelot.six@amd.com>
Date: Wed May 3 11:56:48 2023 +0100
gdb/show_args_command: print to the ui_file argument
The show_args_command uses gdb_printf without specifying the ui_file.
This means that it prints to gdb_stdout instead of the stream given as
an argument to the function.
This commit fixes this.
Reviewed-By: Tom Tromey <tom@tromey.com>
Diff:
---
gdb/infcmd.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gdb/infcmd.c b/gdb/infcmd.c
index b8134665f3f..e42927858ba 100644
--- a/gdb/infcmd.c
+++ b/gdb/infcmd.c
@@ -144,7 +144,7 @@ show_args_command (struct ui_file *file, int from_tty,
{
/* Ignore the passed in value, pull the argument directly from the
inferior. However, these should always be the same. */
- gdb_printf (_("\
+ gdb_printf (file, _("\
Argument list to give program being debugged when it is started is \"%s\".\n"),
current_inferior ()->args ().c_str ());
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-05-03 15:31 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-03 15:31 [binutils-gdb] gdb/show_args_command: print to the ui_file argument Lancelot SIX
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).