diff options
author | Tom Tromey <tom@tromey.com> | 2022-01-02 11:42:07 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2022-03-29 12:46:24 -0600 |
commit | a11ac3b3e8ff6769badcf0041894f6c5acc1b94f (patch) | |
tree | 09cfacc40b2fbe929ca0013869915ddce49378ba /gdb/s12z-tdep.c | |
parent | 0426ad513f93bb1c5805988e60d6f87fbe738860 (diff) | |
download | binutils-gdb-a11ac3b3e8ff6769badcf0041894f6c5acc1b94f.tar.gz |
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.
Diffstat (limited to 'gdb/s12z-tdep.c')
-rw-r--r-- | gdb/s12z-tdep.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gdb/s12z-tdep.c b/gdb/s12z-tdep.c index d13d7397057..77dda56fab0 100644 --- a/gdb/s12z-tdep.c +++ b/gdb/s12z-tdep.c @@ -523,23 +523,23 @@ s12z_print_ccw_info (struct gdbarch *gdbarch, const int stop_1 = 15; const int stop_2 = 17; for (int i = 0; i < stop_1 - len; ++i) - fputc_filtered (' ', file); + gdb_putc (' ', file); fprintf_filtered (file, "0x%04x", ccw); for (int i = 0; i < stop_2 - len; ++i) - fputc_filtered (' ', file); + gdb_putc (' ', file); for (int b = 15; b >= 0; --b) { if (ccw & (0x1u << b)) { if (ccw_bits[b] == 0) - fputc_filtered ('1', file); + gdb_putc ('1', file); else - fputc_filtered (ccw_bits[b], file); + gdb_putc (ccw_bits[b], file); } else - fputc_filtered (tolower (ccw_bits[b]), file); + gdb_putc (tolower (ccw_bits[b]), file); } - fputc_filtered ('\n', file); + gdb_putc ('\n', file); } static void |