diff options
author | Tom Tromey <tom@tromey.com> | 2022-01-02 11:36:44 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2022-03-29 12:46:24 -0600 |
commit | 0426ad513f93bb1c5805988e60d6f87fbe738860 (patch) | |
tree | 6ad0f94f9b2a907623df38db9dd7727fe80f5d51 /gdb/cli/cli-script.c | |
parent | 19a7b8ab871b92dee32a0ebffe274388d3426564 (diff) | |
download | binutils-0426ad513f93bb1c5805988e60d6f87fbe738860.zip binutils-0426ad513f93bb1c5805988e60d6f87fbe738860.tar.gz binutils-0426ad513f93bb1c5805988e60d6f87fbe738860.tar.bz2 |
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.
Diffstat (limited to 'gdb/cli/cli-script.c')
-rw-r--r-- | gdb/cli/cli-script.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); } } |