Reduce explicit use of gdb_stdout
In an earlier version of the pager rewrite series, it was important to audit unfiltered output calls to see which were truly necessary. This is no longer necessary, but it still seems like a decent cleanup to change calls to avoid explicitly passing gdb_stdout. That is, rather than using something like fprintf_unfiltered with gdb_stdout, the code ought to use plain printf_unfiltered instead. This patch makes this change. I went ahead and converted all the _filtered calls I could find, as well, for the same clarity.
This commit is contained in:
parent
244ac24b51
commit
d4396e0e97
20 changed files with 109 additions and 127 deletions
|
@ -414,7 +414,7 @@ get_set_value (const char *args, int from_tty,
|
|||
|
||||
const char *str = set_doc_string.get ();
|
||||
if (str != nullptr && str[0] != '\0')
|
||||
fprintf_filtered (gdb_stdout, "%s\n", str);
|
||||
printf_filtered ("%s\n", str);
|
||||
}
|
||||
|
||||
/* A callback function that is registered against the respective
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue