From 6cb06a8cdaaf30f5d879f24d37100cf1d25c6a3a Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Sun, 2 Jan 2022 11:46:15 -0700 Subject: 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. --- gdb/arc-tdep.c | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'gdb/arc-tdep.c') diff --git a/gdb/arc-tdep.c b/gdb/arc-tdep.c index 297f83b..d6da288 100644 --- a/gdb/arc-tdep.c +++ b/gdb/arc-tdep.c @@ -435,14 +435,14 @@ arc_insn_get_branch_target (const struct arc_instruction &insn) /* JLI and EI depend on optional AUX registers. Not supported right now. */ else if (insn.insn_class == JLI) { - fprintf_unfiltered (gdb_stderr, - "JLI_S instruction is not supported by the GDB."); + gdb_printf (gdb_stderr, + "JLI_S instruction is not supported by the GDB."); return 0; } else if (insn.insn_class == EI) { - fprintf_unfiltered (gdb_stderr, - "EI_S instruction is not supported by the GDB."); + gdb_printf (gdb_stderr, + "EI_S instruction is not supported by the GDB."); return 0; } /* LEAVE_S: PC = BLINK. */ @@ -2450,16 +2450,16 @@ arc_dump_tdep (struct gdbarch *gdbarch, struct ui_file *file) { arc_gdbarch_tdep *tdep = (arc_gdbarch_tdep *) gdbarch_tdep (gdbarch); - fprintf_filtered (file, "arc_dump_tdep: jb_pc = %i\n", tdep->jb_pc); + gdb_printf (file, "arc_dump_tdep: jb_pc = %i\n", tdep->jb_pc); - fprintf_filtered (file, "arc_dump_tdep: is_sigtramp = <%s>\n", - host_address_to_string (tdep->is_sigtramp)); - fprintf_filtered (file, "arc_dump_tdep: sigcontext_addr = <%s>\n", - host_address_to_string (tdep->sigcontext_addr)); - fprintf_filtered (file, "arc_dump_tdep: sc_reg_offset = <%s>\n", - host_address_to_string (tdep->sc_reg_offset)); - fprintf_filtered (file, "arc_dump_tdep: sc_num_regs = %d\n", - tdep->sc_num_regs); + gdb_printf (file, "arc_dump_tdep: is_sigtramp = <%s>\n", + host_address_to_string (tdep->is_sigtramp)); + gdb_printf (file, "arc_dump_tdep: sigcontext_addr = <%s>\n", + host_address_to_string (tdep->sigcontext_addr)); + gdb_printf (file, "arc_dump_tdep: sc_reg_offset = <%s>\n", + host_address_to_string (tdep->sc_reg_offset)); + gdb_printf (file, "arc_dump_tdep: sc_num_regs = %d\n", + tdep->sc_num_regs); } /* This command accepts single argument - address of instruction to -- cgit v1.1