OSDN Git Service
(root)
/
pf3gnuchains
/
pf3gnuchains4x.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
be1262e
)
2005-04-28 Paul Brook <paul@codesourcery.com>
author
pbrook
<pbrook>
Thu, 28 Apr 2005 14:07:54 +0000
(14:07 +0000)
committer
pbrook
<pbrook>
Thu, 28 Apr 2005 14:07:54 +0000
(14:07 +0000)
* exceptions.c (print_flush): Handle NULL gdb_stdout_serial.
gdb/exceptions.c
patch
|
blob
|
history
diff --git
a/gdb/exceptions.c
b/gdb/exceptions.c
index
37b8a9e
..
de01266
100644
(file)
--- 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 ();
}