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/guile | |
| parent | 0426ad513f93bb1c5805988e60d6f87fbe738860 (diff) | |
| download | binutils-a11ac3b3e8ff6769badcf0041894f6c5acc1b94f.zip binutils-a11ac3b3e8ff6769badcf0041894f6c5acc1b94f.tar.gz binutils-a11ac3b3e8ff6769badcf0041894f6c5acc1b94f.tar.bz2 | |
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/guile')
| -rw-r--r-- | gdb/guile/scm-ports.c | 2 | ||||
| -rw-r--r-- | gdb/guile/scm-pretty-print.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/gdb/guile/scm-ports.c b/gdb/guile/scm-ports.c index c61ca1d..946859a 100644 --- a/gdb/guile/scm-ports.c +++ b/gdb/guile/scm-ports.c @@ -204,7 +204,7 @@ fputsn_filtered (const char *s, size_t size, struct ui_file *stream) if (s[i] == '\0') gdb_puts ("\\000", stream); else - fputc_filtered (s[i], stream); + gdb_putc (s[i], stream); } } diff --git a/gdb/guile/scm-pretty-print.c b/gdb/guile/scm-pretty-print.c index 8a5c02d..707ef4b 100644 --- a/gdb/guile/scm-pretty-print.c +++ b/gdb/guile/scm-pretty-print.c @@ -689,7 +689,7 @@ ppscm_print_string_repr (SCM printer, enum display_hint hint, if (string.get ()[i] == '\0') gdb_puts ("\\000", stream); else - fputc_filtered (string.get ()[i], stream); + gdb_putc (string.get ()[i], stream); } } result = STRING_REPR_OK; |
