diff options
author | Tom Tromey <tom@tromey.com> | 2022-01-02 11:13:35 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2022-03-29 12:46:24 -0600 |
commit | 19a7b8ab871b92dee32a0ebffe274388d3426564 (patch) | |
tree | f020eb4af0b4587d3270ae8c62603bae39475715 /gdb/parse.c | |
parent | f4bf8795b382327001cf467b855e5dcd6f30fe5d (diff) | |
download | gdb-19a7b8ab871b92dee32a0ebffe274388d3426564.zip gdb-19a7b8ab871b92dee32a0ebffe274388d3426564.tar.gz gdb-19a7b8ab871b92dee32a0ebffe274388d3426564.tar.bz2 |
Unify vprintf functions
Now that filtered and unfiltered output can be treated identically, we
can unify the vprintf family of functions: vprintf_filtered,
vprintf_unfiltered, vfprintf_filtered and vfprintf_unfiltered. (For
the gdb_stdout variants, recall that only printf_unfiltered gets truly
unfiltered output at this point.) This removes one such function and
renames the remaining two to "gdb_vprintf". All callers are updated.
Much of this patch was written by script.
Diffstat (limited to 'gdb/parse.c')
-rw-r--r-- | gdb/parse.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/parse.c b/gdb/parse.c index 23f0e66..866bb9e6 100644 --- a/gdb/parse.c +++ b/gdb/parse.c @@ -632,11 +632,11 @@ parser_fprintf (FILE *x, const char *y, ...) va_start (args, y); if (x == stderr) - vfprintf_unfiltered (gdb_stderr, y, args); + gdb_vprintf (gdb_stderr, y, args); else { fprintf_unfiltered (gdb_stderr, " Unknown FILE used.\n"); - vfprintf_unfiltered (gdb_stderr, y, args); + gdb_vprintf (gdb_stderr, y, args); } va_end (args); } |