GNU Binutils with patches for OS216
リビジョン | 2b8857fbfc5d0cc8b1b6f3d906120169465fd2ba (tree) |
---|---|
日時 | 2005-04-28 23:37:20 |
作者 | Paul Brook <paul@code...> |
コミッター | Paul Brook |
2005-04-28 Paul Brook <paul@codesourcery.com>
* exceptions.c (print_flush): Handle NULL gdb_stdout_serial.
@@ -282,8 +282,11 @@ print_flush (void) | ||
282 | 282 | |
283 | 283 | /* 3. The system-level buffer. */ |
284 | 284 | gdb_stdout_serial = serial_fdopen (1); |
285 | - serial_drain_output (gdb_stdout_serial); | |
286 | - serial_un_fdopen (gdb_stdout_serial); | |
285 | + if (gdb_stdout_serial) | |
286 | + { | |
287 | + serial_drain_output (gdb_stdout_serial); | |
288 | + serial_un_fdopen (gdb_stdout_serial); | |
289 | + } | |
287 | 290 | |
288 | 291 | annotate_error_begin (); |
289 | 292 | } |