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

@ -124,7 +124,7 @@ print_one_catch_exec (struct breakpoint *b, struct bp_location **last_loc)
static void
print_mention_catch_exec (struct breakpoint *b)
{
printf_filtered (_("Catchpoint %d (exec)"), b->number);
gdb_printf (_("Catchpoint %d (exec)"), b->number);
}
/* Implement the "print_recreate" breakpoint_ops method for exec
@ -133,7 +133,7 @@ print_mention_catch_exec (struct breakpoint *b)
static void
print_recreate_catch_exec (struct breakpoint *b, struct ui_file *fp)
{
fprintf_unfiltered (fp, "catch exec");
gdb_printf (fp, "catch exec");
print_recreate_thread (b, fp);
}