/* Output generating routines for GDB CLI.
- Copyright (C) 1999-2017 Free Software Foundation, Inc.
+ Copyright (C) 1999-2018 Free Software Foundation, Inc.
Contributed by Cygnus Solutions.
Written by Fernando Nasser for Cygnus.
spaces (before);
if (string)
- out_field_fmt (fldno, fldname, "%s", string);
+ fputs_filtered (string, m_streams.back ());
if (after)
spaces (after);
and make it therefore active. OUTSTREAM as NULL will pop the last pushed
output stream; it is an internal error if it does not exist. */
-int
+void
cli_ui_out::do_redirect (ui_file *outstream)
{
if (outstream != NULL)
m_streams.push_back (outstream);
else
m_streams.pop_back ();
-
- return 0;
}
/* local functions */
-/* Like cli_ui_out::do_field_fmt, but takes a variable number of args
- and makes a va_list and does not insert a separator. */
-
-/* VARARGS */
-void
-cli_ui_out::out_field_fmt (int fldno, const char *fldname,
- const char *format, ...)
-{
- va_list args;
-
- va_start (args, format);
- vfprintf_filtered (m_streams.back (), format, args);
-
- va_end (args);
-}
-
void
cli_ui_out::field_separator ()
{