if (m_suppress_output)
return;
- /* Use the "no_gdbfmt" variant here to avoid recursion.
- vfprintf_styled calls into cli_ui_out::message to handle the
- gdb-specific printf formats. */
- vfprintf_styled_no_gdbfmt (m_streams.back (), style,
- !test_flags (unfiltered_output), format, args);
+ std::string str = string_vprintf (format, args);
+ if (!str.empty ())
+ {
+ if (test_flags (unfiltered_output))
+ fputs_styled_unfiltered (str.c_str (), style, m_streams.back ());
+ else
+ fputs_styled (str.c_str (), style, m_streams.back ());
+ }
}
void
set_output_style (stream, ui_file_style ());
}
-/* See utils.h. */
-
-void
-vfprintf_styled_no_gdbfmt (struct ui_file *stream, const ui_file_style &style,
- bool filter, const char *format, va_list args)
-{
- std::string str = string_vprintf (format, args);
- if (!str.empty ())
- {
- set_output_style (stream, style);
- fputs_maybe_filtered (str.c_str (), stream, filter);
- set_output_style (stream, ui_file_style ());
- }
-}
-
void
printf_filtered (const char *format, ...)
{
va_list args)
ATTRIBUTE_PRINTF (3, 0);
-/* Like vfprintf_styled, but do not process gdb-specific format
- specifiers. */
-extern void vfprintf_styled_no_gdbfmt (struct ui_file *stream,
- const ui_file_style &style,
- bool filter,
- const char *fmt, va_list args)
- ATTRIBUTE_PRINTF (4, 0);
-
/* Like fputs_filtered, but styles the output according to STYLE, when
appropriate. */