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:
parent
a11ac3b3e8
commit
6cb06a8cda
249 changed files with 8449 additions and 8463 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue