mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-13 20:10:02 +08:00
Unify gdb printf functions
Now that filtered and unfiltered output can be treated identically, we can unify the printf family of functions. This is done under the name "gdb_printf". Most of this patch was written by script.
This commit is contained in:
@ -496,7 +496,7 @@ print_command_trace (const char *fmt, ...)
|
||||
return;
|
||||
|
||||
for (i=0; i < command_nest_depth; i++)
|
||||
printf_filtered ("+");
|
||||
gdb_printf ("+");
|
||||
|
||||
va_list args;
|
||||
|
||||
@ -1647,11 +1647,11 @@ show_user_1 (struct cmd_list_element *c, const char *prefix, const char *name,
|
||||
{
|
||||
struct command_line *cmdlines = c->user_commands.get ();
|
||||
|
||||
fprintf_filtered (stream, "User %scommand \"",
|
||||
c->is_prefix () ? "prefix" : "");
|
||||
gdb_printf (stream, "User %scommand \"",
|
||||
c->is_prefix () ? "prefix" : "");
|
||||
fprintf_styled (stream, title_style.style (), "%s%s",
|
||||
prefix, name);
|
||||
fprintf_filtered (stream, "\":\n");
|
||||
gdb_printf (stream, "\":\n");
|
||||
if (cmdlines)
|
||||
{
|
||||
print_command_lines (current_uiout, cmdlines, 1);
|
||||
|
Reference in New Issue
Block a user