diff options
author | Paul Brook <paul@codesourcery.com> | 2005-04-28 14:37:20 +0000 |
---|---|---|
committer | Paul Brook <paul@codesourcery.com> | 2005-04-28 14:37:20 +0000 |
commit | 2e90e2f3b10c0b5c16439dd1282dbf2aea41d030 (patch) | |
tree | e6304de3be2ab40e0e8bbb4c827e343f4bbac674 | |
parent | 49d2e0ea2cbe1a0de5cb6bb028ba12c165964d96 (diff) | |
download | gdb-2e90e2f3b10c0b5c16439dd1282dbf2aea41d030.tar.gz |
2005-04-28 Paul Brook <paul@codesourcery.com>
* exceptions.c (print_flush): Handle NULL gdb_stdout_serial.
-rw-r--r-- | ChangeLog.csl | 4 | ||||
-rw-r--r-- | gdb/exceptions.c | 7 |
2 files changed, 9 insertions, 2 deletions
diff --git a/ChangeLog.csl b/ChangeLog.csl index 903a0c1ffb8..74d0797d2e2 100644 --- a/ChangeLog.csl +++ b/ChangeLog.csl @@ -1,3 +1,7 @@ +2005-04-28 Paul Brook <paul@codesourcery.com> + + * gdb/exceptions.c (print_flush): Handle NULL gdb_stdout_serial. + 2005-04-27 Paul Brook <paul@codesourcery.com> * sim/common/Make-common.in: Add $(EXEEXT) to "run". diff --git a/gdb/exceptions.c b/gdb/exceptions.c index 98e6f25829a..f5ffca83b42 100644 --- a/gdb/exceptions.c +++ b/gdb/exceptions.c @@ -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 (); } |