/* Target IO streams. */
struct ui_file *gdb_stdtargin;
-struct ui_file *gdb_stdtarg;
/* True if --batch or --batch-silent was seen. */
int batch_flag = 0;
gdb_internal_backtrace_init_str ();
current_ui = main_ui;
- gdb_stdtarg = gdb_stderr;
gdb_stdtargin = gdb_stdin;
/* Put a CLI based uiout in place early. If the early initialization
return ¤t_ui->m_gdb_stdlog;
}
+struct ui_file **
+current_ui_gdb_stdtarg_ptr ()
+{
+ return ¤t_ui->m_gdb_stdtarg;
+}
+
struct ui_out **
current_ui_current_uiout_ptr ()
{
m_gdb_stdout (new pager_file (new stdio_file (outstream))),
m_gdb_stdin (new stdio_file (instream)),
m_gdb_stderr (new stderr_file (errstream)),
- m_gdb_stdlog (new timestamped_file (m_gdb_stderr))
+ m_gdb_stdlog (new timestamped_file (m_gdb_stderr)),
+ m_gdb_stdtarg (m_gdb_stderr)
{
unbuffer_stream (instream_);
/* Log/debug/trace messages that should bypass normal stdout/stderr
filtering. */
struct ui_file *m_gdb_stdlog;
+ /* Target output. */
+ struct ui_file *m_gdb_stdtarg;
/* The current ui_out. */
struct ui_out *m_current_uiout = nullptr;
extern struct ui_file **current_ui_gdb_stdin_ptr (void);
extern struct ui_file **current_ui_gdb_stderr_ptr (void);
extern struct ui_file **current_ui_gdb_stdlog_ptr (void);
+extern struct ui_file **current_ui_gdb_stdtarg_ptr ();
/* Flush STREAM. */
extern void gdb_flush (struct ui_file *stream);
/* Log/debug/trace messages that bypasses the pager, if one is in
use. */
#define gdb_stdlog (*current_ui_gdb_stdlog_ptr ())
+/* Target output. */
+#define gdb_stdtarg (*current_ui_gdb_stdtarg_ptr ())
/* Truly global ui_file streams. These are all defined in main.c. */
-/* Target output that should bypass the pager, if one is in use. */
-extern struct ui_file *gdb_stdtarg;
extern struct ui_file *gdb_stdtargin;
/* Set the screen dimensions to WIDTH and HEIGHT. */