diff options
author | Tom Tromey <tom@tromey.com> | 2022-01-02 11:46:15 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2022-03-29 12:46:24 -0600 |
commit | 6cb06a8cdaaf30f5d879f24d37100cf1d25c6a3a (patch) | |
tree | 641a6a86240919fe4ba9219fbbbe15bc6331c22d /gdb/break-catch-syscall.c | |
parent | a11ac3b3e8ff6769badcf0041894f6c5acc1b94f (diff) | |
download | binutils-6cb06a8cdaaf30f5d879f24d37100cf1d25c6a3a.zip binutils-6cb06a8cdaaf30f5d879f24d37100cf1d25c6a3a.tar.gz binutils-6cb06a8cdaaf30f5d879f24d37100cf1d25c6a3a.tar.bz2 |
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.
Diffstat (limited to 'gdb/break-catch-syscall.c')
-rw-r--r-- | gdb/break-catch-syscall.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/gdb/break-catch-syscall.c b/gdb/break-catch-syscall.c index 9ad8aaa..515a957 100644 --- a/gdb/break-catch-syscall.c +++ b/gdb/break-catch-syscall.c @@ -289,9 +289,9 @@ print_mention_catch_syscall (struct breakpoint *b) if (!c->syscalls_to_be_caught.empty ()) { if (c->syscalls_to_be_caught.size () > 1) - printf_filtered (_("Catchpoint %d (syscalls"), b->number); + gdb_printf (_("Catchpoint %d (syscalls"), b->number); else - printf_filtered (_("Catchpoint %d (syscall"), b->number); + gdb_printf (_("Catchpoint %d (syscall"), b->number); for (int iter : c->syscalls_to_be_caught) { @@ -299,15 +299,15 @@ print_mention_catch_syscall (struct breakpoint *b) get_syscall_by_number (gdbarch, iter, &s); if (s.name != NULL) - printf_filtered (" '%s' [%d]", s.name, s.number); + gdb_printf (" '%s' [%d]", s.name, s.number); else - printf_filtered (" %d", s.number); + gdb_printf (" %d", s.number); } - printf_filtered (")"); + gdb_printf (")"); } else - printf_filtered (_("Catchpoint %d (any syscall)"), - b->number); + gdb_printf (_("Catchpoint %d (any syscall)"), + b->number); } /* Implement the "print_recreate" breakpoint_ops method for syscall @@ -319,7 +319,7 @@ print_recreate_catch_syscall (struct breakpoint *b, struct ui_file *fp) struct syscall_catchpoint *c = (struct syscall_catchpoint *) b; struct gdbarch *gdbarch = b->loc->gdbarch; - fprintf_unfiltered (fp, "catch syscall"); + gdb_printf (fp, "catch syscall"); for (int iter : c->syscalls_to_be_caught) { @@ -327,9 +327,9 @@ print_recreate_catch_syscall (struct breakpoint *b, struct ui_file *fp) get_syscall_by_number (gdbarch, iter, &s); if (s.name != NULL) - fprintf_unfiltered (fp, " %s", s.name); + gdb_printf (fp, " %s", s.name); else - fprintf_unfiltered (fp, " %d", s.number); + gdb_printf (fp, " %d", s.number); } print_recreate_thread (b, fp); |