mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-27 14:39:09 +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:
10
gdb/p-lang.c
10
gdb/p-lang.c
@ -159,14 +159,14 @@ pascal_language::print_one_char (int c, struct ui_file *stream,
|
||||
gdb_puts ("''", stream);
|
||||
}
|
||||
else
|
||||
fprintf_filtered (stream, "%c", c);
|
||||
gdb_printf (stream, "%c", c);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (*in_quotes)
|
||||
gdb_puts ("'", stream);
|
||||
*in_quotes = 0;
|
||||
fprintf_filtered (stream, "#%d", (unsigned int) c);
|
||||
gdb_printf (stream, "#%d", (unsigned int) c);
|
||||
}
|
||||
}
|
||||
|
||||
@ -291,9 +291,9 @@ pascal_language::printstr (struct ui_file *stream, struct type *elttype,
|
||||
in_quotes = 0;
|
||||
}
|
||||
printchar (current_char, elttype, stream);
|
||||
fprintf_filtered (stream, " %p[<repeats %u times>%p]",
|
||||
metadata_style.style ().ptr (),
|
||||
reps, nullptr);
|
||||
gdb_printf (stream, " %p[<repeats %u times>%p]",
|
||||
metadata_style.style ().ptr (),
|
||||
reps, nullptr);
|
||||
i = rep1 - 1;
|
||||
things_printed += options->repeat_count_threshold;
|
||||
need_comma = 1;
|
||||
|
Reference in New Issue
Block a user