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.
This commit is contained in:
parent
de4686ffaf
commit
7514a66128
11 changed files with 46 additions and 42 deletions
|
@ -1303,11 +1303,13 @@ show_tdesc_filename_cmd (struct ui_file *file, int from_tty,
|
|||
value = get_tdesc_info (current_inferior ())->filename.data ();
|
||||
|
||||
if (value != NULL && *value != '\0')
|
||||
printf_filtered (_("The target description will be read from \"%s\".\n"),
|
||||
value);
|
||||
fprintf_filtered (file,
|
||||
_("The target description will be read from \"%s\".\n"),
|
||||
value);
|
||||
else
|
||||
printf_filtered (_("The target description will be "
|
||||
"read from the target.\n"));
|
||||
fprintf_filtered (file,
|
||||
_("The target description will be "
|
||||
"read from the target.\n"));
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue