30#include "gdbsupport/gdb_optional.h"
36 struct serial *gdb_stdout_serial;
41 gdb::optional<target_terminal::scoped_restore_terminal_state> term_state;
44 term_state.emplace ();
59 if (gdb_stdout_serial)
76 for (start = e.what (); start != NULL; start = end)
78 end = strchr (start,
'\n');
84 file->write (start, end - start);
93 case RETURN_FORCED_QUIT:
101 internal_error (_(
"Bad switch."));
108 if (e.reason < 0 && e.message != NULL)
119 if (e.reason < 0 && e.message != NULL)
void annotate_error_begin(void)
void annotate_error(void)
static void ours_for_output()
void exception_fprintf(struct ui_file *file, const struct gdb_exception &e, const char *prefix,...)
void exception_print(struct ui_file *file, const struct gdb_exception &e)
static void print_flush(void)
static void print_exception(struct ui_file *file, const struct gdb_exception &e)
#define prefix(a, b, R, do)
void serial_un_fdopen(struct serial *scb)
int serial_drain_output(struct serial *scb)
struct serial * serial_fdopen(const int fd)
bool target_supports_terminal_ours(void)
void gdb_vprintf(struct ui_file *stream, const char *format, va_list args)
void gdb_printf(struct ui_file *stream, const char *format,...)
void(* deprecated_error_begin_hook)(void)
void gdb_flush(struct ui_file *stream)
void gdb_puts(const char *linebuffer, struct ui_file *stream)