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/bpf-tdep.c | |
parent | a11ac3b3e8ff6769badcf0041894f6c5acc1b94f (diff) | |
download | binutils-gdb-6cb06a8cdaaf30f5d879f24d37100cf1d25c6a3a.tar.gz |
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/bpf-tdep.c')
-rw-r--r-- | gdb/bpf-tdep.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gdb/bpf-tdep.c b/gdb/bpf-tdep.c index 6a7d9acbea2..09030cf8fa1 100644 --- a/gdb/bpf-tdep.c +++ b/gdb/bpf-tdep.c @@ -76,7 +76,7 @@ static void show_bpf_debug (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value) { - fprintf_filtered (file, _("Debugging of BPF is %s.\n"), value); + gdb_printf (file, _("Debugging of BPF is %s.\n"), value); } @@ -136,9 +136,9 @@ bpf_gdb_print_insn (bfd_vma memaddr, disassemble_info *info) static CORE_ADDR bpf_skip_prologue (struct gdbarch *gdbarch, CORE_ADDR start_pc) { - fprintf_unfiltered (gdb_stdlog, - "Skipping prologue: start_pc=%s\n", - paddress (gdbarch, start_pc)); + gdb_printf (gdb_stdlog, + "Skipping prologue: start_pc=%s\n", + paddress (gdbarch, start_pc)); /* XXX: to be completed. */ return start_pc + 0; } @@ -252,8 +252,8 @@ bpf_push_dummy_call (struct gdbarch *gdbarch, struct value *function, function_call_return_method return_method, CORE_ADDR struct_addr) { - fprintf_unfiltered (gdb_stdlog, "Pushing dummy call: sp=%s\n", - paddress (gdbarch, sp)); + gdb_printf (gdb_stdlog, "Pushing dummy call: sp=%s\n", + paddress (gdbarch, sp)); /* XXX writeme */ return sp; } |