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/make-target-delegates.py | |
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/make-target-delegates.py')
-rwxr-xr-x | gdb/make-target-delegates.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/make-target-delegates.py b/gdb/make-target-delegates.py index 9717807..a68315d 100755 --- a/gdb/make-target-delegates.py +++ b/gdb/make-target-delegates.py @@ -269,16 +269,16 @@ def write_debugmethod(f, content, name, return_type, argtypes): ) for i in range(len(argtypes)): if i > 0: - print(' fputs_unfiltered (", ", gdb_stdlog);', file=f) + print(' gdb_puts (", ", gdb_stdlog);', file=f) printer = munge_type(argtypes[i]) print(" " + printer + " (" + names[i] + ");", file=f) if return_type != "void": - print(' fputs_unfiltered (") = ", gdb_stdlog);', file=f) + print(' gdb_puts (") = ", gdb_stdlog);', file=f) printer = munge_type(return_type) print(" " + printer + " (result);", file=f) - print(' fputs_unfiltered ("\\n", gdb_stdlog);', file=f) + print(' gdb_puts ("\\n", gdb_stdlog);', file=f) else: - print(' fputs_unfiltered (")\\n", gdb_stdlog);', file=f) + print(' gdb_puts (")\\n", gdb_stdlog);', file=f) if return_type != "void": print(" return result;", file=f) |