gdb_stdin is never overridden, so it doesn't need to be an lvalue.
This patch changes how it is implemented.
Future patches will change the other streams here, but I thought since
this one is truly different from the others, it should be handled
separately.
Approved-By: Andrew Burgess <aburgess@redhat.com>
return ¤t_ui->m_gdb_stdout;
}
-struct ui_file **
-current_ui_gdb_stdin_ptr ()
+struct ui_file *
+current_ui_gdb_stdin ()
{
- return ¤t_ui->m_gdb_stdin;
+ return current_ui->m_gdb_stdin;
}
struct ui_file **
extern bool debug_timestamp;
extern struct ui_file **current_ui_gdb_stdout_ptr (void);
-extern struct ui_file **current_ui_gdb_stdin_ptr (void);
+extern struct ui_file *current_ui_gdb_stdin ();
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 ();
/* Normal results */
#define gdb_stdout (*current_ui_gdb_stdout_ptr ())
-/* Input stream */
-#define gdb_stdin (*current_ui_gdb_stdin_ptr ())
+/* Input stream. */
+#define gdb_stdin (current_ui_gdb_stdin ())
/* Serious error notifications. This bypasses the pager, if one is in
use. */
#define gdb_stderr (*current_ui_gdb_stderr_ptr ())