mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-27 14:39:09 +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:
@ -1246,9 +1246,9 @@ static void
|
||||
compile_cplus_debug_output_1 (const char *arg)
|
||||
{
|
||||
if (arg == nullptr)
|
||||
fputs_unfiltered ("NULL", gdb_stdlog);
|
||||
gdb_puts ("NULL", gdb_stdlog);
|
||||
else
|
||||
fputs_unfiltered (arg, gdb_stdlog);
|
||||
gdb_puts (arg, gdb_stdlog);
|
||||
}
|
||||
|
||||
static void
|
||||
@ -1275,7 +1275,7 @@ compile_cplus_debug_output (T arg, Targs... Args)
|
||||
#define OUTPUT_DEBUG_RESULT(R) \
|
||||
if (debug_compile_cplus_types) \
|
||||
{ \
|
||||
fputs_unfiltered (": ", gdb_stdlog); \
|
||||
gdb_puts (": ", gdb_stdlog); \
|
||||
compile_cplus_debug_output (R); \
|
||||
fputc_unfiltered ('\n', gdb_stdlog); \
|
||||
} \
|
||||
|
Reference in New Issue
Block a user