aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLancelot SIX <lancelot.six@amd.com>2023-05-03 11:56:48 +0100
committerLancelot SIX <lancelot.six@amd.com>2023-05-03 16:28:25 +0100
commit2ad00a4b42f89b61fdab24940b67713daf81c988 (patch)
tree7e52d84bda4e517e9062d3416c250225ae8fa01b
parenta2243c30bc13c9adce71d70eeb5e97b7846b48f3 (diff)
downloadgdb-2ad00a4b42f89b61fdab24940b67713daf81c988.zip
gdb-2ad00a4b42f89b61fdab24940b67713daf81c988.tar.gz
gdb-2ad00a4b42f89b61fdab24940b67713daf81c988.tar.bz2
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>
-rw-r--r--gdb/infcmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/infcmd.c b/gdb/infcmd.c
index b813466..e429278 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 ());
}