[PATCH 3/8] Introduce gdb-specific %p format suffixes

Tom Tromey tom@tromey.com
Fri Aug 27 20:17:23 GMT 2021


>>>>> "Andreas" == Andreas Schwab <schwab@linux-m68k.org> writes:

Andreas> On Sep 27 2019, Tom Tromey wrote:
>> void
>> vfprintf_filtered (struct ui_file *stream, const char *format, va_list args)
>> {
>> -  vfprintf_maybe_filtered (stream, format, args, 1);
>> +  vfprintf_maybe_filtered (stream, format, args, true, true);
>> }

>> void
>> vprintf_filtered (const char *format, va_list args)
>> {
>> -  vfprintf_maybe_filtered (gdb_stdout, format, args, 1);
>> +  vfprintf_maybe_filtered (gdb_stdout, format, args, true, false);
>> }

Andreas> Why is vprintf_filtered different from vfprintf_filtered (gdb_stdout)?

I don't know.  Changing that 'false' to 'true' doesn't cause any
regressions.  And abstractly that seems like the right thing to do.
There's another thread about this as well, I'll reply there too.

Tom


More information about the Gdb-patches mailing list