aboutsummaryrefslogtreecommitdiff
path: root/gdb/remote-mips.c
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2011-07-17 19:22:32 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2011-07-17 19:22:32 +0000
commit2e424e08c156520e2592dfcaed386c00157d6d77 (patch)
tree9384b5f1f513a51d7654237c009aa701c7ec3cfa /gdb/remote-mips.c
parent30d2355aaba3ee338fc918aab1fffe56329deb8a (diff)
downloadgdb-2e424e08c156520e2592dfcaed386c00157d6d77.zip
gdb-2e424e08c156520e2592dfcaed386c00157d6d77.tar.gz
gdb-2e424e08c156520e2592dfcaed386c00157d6d77.tar.bz2
gdb/
* remote-mips.c (pmon_download): Fix ignored return value GCC warning.
Diffstat (limited to 'gdb/remote-mips.c')
-rw-r--r--gdb/remote-mips.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/gdb/remote-mips.c b/gdb/remote-mips.c
index 7fbe767..d544bcb 100644
--- a/gdb/remote-mips.c
+++ b/gdb/remote-mips.c
@@ -3343,7 +3343,13 @@ static void
pmon_download (char *buffer, int length)
{
if (tftp_in_use)
- fwrite (buffer, 1, length, tftp_file);
+ {
+ size_t written;
+
+ written = fwrite (buffer, 1, length, tftp_file);
+ if (written < length)
+ perror_with_name (tftp_localname);
+ }
else
serial_write (udp_in_use ? udp_desc : mips_desc, buffer, length);
}