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/p-lang.c | |
parent | a11ac3b3e8ff6769badcf0041894f6c5acc1b94f (diff) | |
download | binutils-6cb06a8cdaaf30f5d879f24d37100cf1d25c6a3a.zip binutils-6cb06a8cdaaf30f5d879f24d37100cf1d25c6a3a.tar.gz binutils-6cb06a8cdaaf30f5d879f24d37100cf1d25c6a3a.tar.bz2 |
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/p-lang.c')
-rw-r--r-- | gdb/p-lang.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gdb/p-lang.c b/gdb/p-lang.c index 3f6ee25..1597e9c 100644 --- a/gdb/p-lang.c +++ b/gdb/p-lang.c @@ -159,14 +159,14 @@ pascal_language::print_one_char (int c, struct ui_file *stream, gdb_puts ("''", stream); } else - fprintf_filtered (stream, "%c", c); + gdb_printf (stream, "%c", c); } else { if (*in_quotes) gdb_puts ("'", stream); *in_quotes = 0; - fprintf_filtered (stream, "#%d", (unsigned int) c); + gdb_printf (stream, "#%d", (unsigned int) c); } } @@ -291,9 +291,9 @@ pascal_language::printstr (struct ui_file *stream, struct type *elttype, in_quotes = 0; } printchar (current_char, elttype, stream); - fprintf_filtered (stream, " %p[<repeats %u times>%p]", - metadata_style.style ().ptr (), - reps, nullptr); + gdb_printf (stream, " %p[<repeats %u times>%p]", + metadata_style.style ().ptr (), + reps, nullptr); i = rep1 - 1; things_printed += options->repeat_count_threshold; need_comma = 1; |