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>
{
/* 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 ());
}