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/p-lang.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'gdb/p-lang.c') 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[%p]", - metadata_style.style ().ptr (), - reps, nullptr); + gdb_printf (stream, " %p[%p]", + metadata_style.style ().ptr (), + reps, nullptr); i = rep1 - 1; things_printed += options->repeat_count_threshold; need_comma = 1; -- cgit v1.1