diff options
author | Hui Zhu <teawater@gmail.com> | 2011-05-14 03:37:18 +0000 |
---|---|---|
committer | Hui Zhu <teawater@gmail.com> | 2011-05-14 03:37:18 +0000 |
commit | 093cee7d54d23c98e9efca824653d4e63f95b222 (patch) | |
tree | 25cae2f8451e8bd8186c410110694202d94e31ec | |
parent | 25e334b48f9116ece66e00d307aa513188968f6c (diff) | |
download | gdb-093cee7d54d23c98e9efca824653d4e63f95b222.zip gdb-093cee7d54d23c98e9efca824653d4e63f95b222.tar.gz gdb-093cee7d54d23c98e9efca824653d4e63f95b222.tar.bz2 |
2011-05-14 Hui Zhu <teawater@gmail.com>
* ui-file.c (stdio_file_write_async_safe): Add empty check for build.
-rw-r--r-- | gdb/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/ui-file.c | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 70d4f6c..a2abac7 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2011-05-14 Hui Zhu <teawater@gmail.com> + + * ui-file.c (stdio_file_write_async_safe): Add empty check for build. + 2011-05-13 Doug Evans <dje@google.com> Support $pdir and $sdir in libthread-db-search-path. diff --git a/gdb/ui-file.c b/gdb/ui-file.c index 20b072e..6bb2342 100644 --- a/gdb/ui-file.c +++ b/gdb/ui-file.c @@ -580,7 +580,8 @@ stdio_file_write_async_safe (struct ui_file *file, return; } - write (stdio->fd, buf, length_buf); + if (write (stdio->fd, buf, length_buf)) + ; } static void |