From 0426ad513f93bb1c5805988e60d6f87fbe738860 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Sun, 2 Jan 2022 11:36:44 -0700 Subject: Unify gdb puts functions Now that filtered and unfiltered output can be treated identically, we can unify the puts family of functions. This is done under the name "gdb_puts". Most of this patch was written by script. --- gdb/f-lang.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gdb/f-lang.h') diff --git a/gdb/f-lang.h b/gdb/f-lang.h index 11debd5..2a1f6c7 100644 --- a/gdb/f-lang.h +++ b/gdb/f-lang.h @@ -161,9 +161,9 @@ public: void printchar (int ch, struct type *chtype, struct ui_file *stream) const override { - fputs_filtered ("'", stream); + gdb_puts ("'", stream); emitchar (ch, chtype, stream, '\''); - fputs_filtered ("'", stream); + gdb_puts ("'", stream); } /* See language.h. */ @@ -176,7 +176,7 @@ public: const char *type_encoding = get_encoding (elttype); if (TYPE_LENGTH (elttype) == 4) - fputs_filtered ("4_", stream); + gdb_puts ("4_", stream); if (!encoding || !*encoding) encoding = type_encoding; -- cgit v1.1