diff options
author | Yao Qi <yao@codesourcery.com> | 2011-12-14 07:47:15 +0000 |
---|---|---|
committer | Yao Qi <yao@codesourcery.com> | 2011-12-14 07:47:15 +0000 |
commit | 712c65750bca1cae85b9a95e5d7d3f4f75d7c492 (patch) | |
tree | 82663065346cb02d03dd01c2213856c8e06f1143 | |
parent | d54d1edf1abe6b09646ba3f8d8b38002acb60802 (diff) | |
download | gdb-712c65750bca1cae85b9a95e5d7d3f4f75d7c492.zip gdb-712c65750bca1cae85b9a95e5d7d3f4f75d7c492.tar.gz gdb-712c65750bca1cae85b9a95e5d7d3f4f75d7c492.tar.bz2 |
gdb/gdbserver/
* tracepoint.c (gdb_ust_thread): Don't ignore return value
of write.
-rw-r--r-- | gdb/gdbserver/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/gdbserver/tracepoint.c | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index 8c88063..d295160 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,5 +1,10 @@ 2011-12-14 Yao Qi <yao@codesourcery.com> + * tracepoint.c (gdb_ust_thread): Don't ignore return value + of write. + +2011-12-14 Yao Qi <yao@codesourcery.com> + * i386-low.c (i386_low_stopped_data_address): Initialize local variable `control'. diff --git a/gdb/gdbserver/tracepoint.c b/gdb/gdbserver/tracepoint.c index d50b5f3..5f7177f 100644 --- a/gdb/gdbserver/tracepoint.c +++ b/gdb/gdbserver/tracepoint.c @@ -8122,7 +8122,8 @@ gdb_ust_thread (void *arg) strcpy (cmd_buf, ""); } - write (fd, buf, 1); + /* Fix compiler's warning: ignoring return value of 'write'. */ + ret = write (fd, buf, 1); close (fd); } } |