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/cli/cli-script.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gdb/cli/cli-script.c') diff --git a/gdb/cli/cli-script.c b/gdb/cli/cli-script.c index 67613aa..fe4682d 100644 --- a/gdb/cli/cli-script.c +++ b/gdb/cli/cli-script.c @@ -503,7 +503,7 @@ print_command_trace (const char *fmt, ...) va_start (args, fmt); gdb_vprintf (fmt, args); va_end (args); - puts_filtered ("\n"); + gdb_puts ("\n"); } /* Helper for execute_control_command. */ @@ -1655,7 +1655,7 @@ show_user_1 (struct cmd_list_element *c, const char *prefix, const char *name, if (cmdlines) { print_command_lines (current_uiout, cmdlines, 1); - fputs_filtered ("\n", stream); + gdb_puts ("\n", stream); } } -- cgit v1.1