aboutsummaryrefslogtreecommitdiff
path: root/gdb/top.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2021-12-30 17:31:41 -0700
committerTom Tromey <tom@tromey.com>2022-01-25 15:22:49 -0700
commitd4396e0e97d21ad766089748fde1e11257384c49 (patch)
treed688f73ec95568444a01a01f2c85474e3db3c9db /gdb/top.c
parent244ac24b51ba1375794eed93b58d5813e7c044ca (diff)
downloadgdb-d4396e0e97d21ad766089748fde1e11257384c49.zip
gdb-d4396e0e97d21ad766089748fde1e11257384c49.tar.gz
gdb-d4396e0e97d21ad766089748fde1e11257384c49.tar.bz2
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.
Diffstat (limited to 'gdb/top.c')
-rw-r--r--gdb/top.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/top.c b/gdb/top.c
index 07695f8..9164cad 100644
--- a/gdb/top.c
+++ b/gdb/top.c
@@ -873,7 +873,7 @@ gdb_readline_no_editing (const char *prompt)
/* Don't use a _filtered function here. It causes the assumed
character position to be off, since the newline we read from
the user is not accounted for. */
- fputs_unfiltered (prompt, gdb_stdout);
+ puts_unfiltered (prompt);
gdb_flush (gdb_stdout);
}