From a11ac3b3e8ff6769badcf0041894f6c5acc1b94f Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Sun, 2 Jan 2022 11:42:07 -0700 Subject: Unify gdb putc functions Now that filtered and unfiltered output can be treated identically, we can unify the putc family of functions. This is done under the name "gdb_putc". Most of this patch was written by script. --- gdb/mips-tdep.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'gdb/mips-tdep.c') diff --git a/gdb/mips-tdep.c b/gdb/mips-tdep.c index d731ecc..cedce6c 100644 --- a/gdb/mips-tdep.c +++ b/gdb/mips-tdep.c @@ -6423,7 +6423,7 @@ print_fpu_flags (struct ui_file *file, int flags) gdb_puts (" inval", file); if (flags & (1 << 5)) gdb_puts (" unimp", file); - fputc_filtered ('\n', file); + gdb_putc ('\n', file); } /* Print interesting information about the floating point processor @@ -6458,7 +6458,7 @@ mips_print_float_info (struct gdbarch *gdbarch, struct ui_file *file, for (i = 1; i <= 7; i++) if (fcs & (1 << (24 + i))) fprintf_filtered (file, " %d", i); - fputc_filtered ('\n', file); + gdb_putc ('\n', file); gdb_puts ("cause :", file); print_fpu_flags (file, (fcs >> 12) & 0x3f); @@ -6485,11 +6485,11 @@ mips_print_float_info (struct gdbarch *gdbarch, struct ui_file *file, gdb_puts (" zero", file); if ((fcs & (0xb << 21)) == 0) gdb_puts (" no", file); - fputc_filtered ('\n', file); + gdb_putc ('\n', file); fprintf_filtered (file, "nan2008 : %s\n", fcs & (1 << 18) ? "yes" : "no"); fprintf_filtered (file, "abs2008 : %s\n", fcs & (1 << 19) ? "yes" : "no"); - fputc_filtered ('\n', file); + gdb_putc ('\n', file); default_print_float_info (gdbarch, file, frame, args); } -- cgit v1.1