Unify gdb printf functions

Now that filtered and unfiltered output can be treated identically, we
can unify the printf family of functions.  This is done under the name
"gdb_printf".  Most of this patch was written by script.
This commit is contained in:
Tom Tromey
2022-01-02 11:46:15 -07:00
parent a11ac3b3e8
commit 6cb06a8cda
249 changed files with 8449 additions and 8463 deletions

View File

@ -1398,7 +1398,7 @@ ctf_psymtab::read_symtab (struct objfile *objfile)
{
if (info_verbose)
{
printf_filtered (_("Reading in CTF data for %s..."), filename);
gdb_printf (_("Reading in CTF data for %s..."), filename);
gdb_flush (gdb_stdout);
}
@ -1417,7 +1417,7 @@ ctf_psymtab::read_symtab (struct objfile *objfile)
/* Finish up the debug error message. */
if (info_verbose)
printf_filtered (_("done.\n"));
gdb_printf (_("done.\n"));
}
}
@ -1601,7 +1601,7 @@ build_ctf_archive_member (ctf_dict_t *ctf, const char *name, void *arg)
if (info_verbose)
{
printf_filtered (_("Scanning archive member %s..."), name);
gdb_printf (_("Scanning archive member %s..."), name);
gdb_flush (gdb_stdout);
}