mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-17 16:05:56 +08:00
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.
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user