2005-04-28 Paul Brook <paul@codesourcery.com>

* exceptions.c (print_flush): Handle NULL gdb_stdout_serial.
This commit is contained in:
Paul Brook 2005-04-28 14:07:54 +00:00
parent 0291d2913e
commit cade9e545b
2 changed files with 9 additions and 2 deletions

View file

@ -1,3 +1,7 @@
2005-04-28 Paul Brook <paul@codesourcery.com>
* exceptions.c (print_flush): Handle NULL gdb_stdout_serial.
2005-04-27 Mark Kettenis <kettenis@gnu.org>
* solib-svr4.c (_initialize_svr4_solib)

View file

@ -282,8 +282,11 @@ print_flush (void)
/* 3. The system-level buffer. */
gdb_stdout_serial = serial_fdopen (1);
serial_drain_output (gdb_stdout_serial);
serial_un_fdopen (gdb_stdout_serial);
if (gdb_stdout_serial)
{
serial_drain_output (gdb_stdout_serial);
serial_un_fdopen (gdb_stdout_serial);
}
annotate_error_begin ();
}