mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-05 21:50:21 +08:00
Unify gdb putc functions
Now that filtered and unfiltered output can be treated identically, we can unify the putc family of functions. This is done under the name "gdb_putc". Most of this patch was written by script.
This commit is contained in:
@ -621,7 +621,7 @@ info_common_command_for_block (const struct block *block, const char *comname,
|
||||
continue;
|
||||
|
||||
if (*any_printed)
|
||||
putchar_filtered ('\n');
|
||||
gdb_putc ('\n');
|
||||
else
|
||||
*any_printed = 1;
|
||||
if (sym->print_name ())
|
||||
@ -650,7 +650,7 @@ info_common_command_for_block (const struct block *block, const char *comname,
|
||||
except.what ());
|
||||
}
|
||||
|
||||
putchar_filtered ('\n');
|
||||
gdb_putc ('\n');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user