summaryrefslogtreecommitdiff
path: root/gdb/nat/netbsd-nat.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/nat/netbsd-nat.c')
-rw-r--r--gdb/nat/netbsd-nat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/nat/netbsd-nat.c b/gdb/nat/netbsd-nat.c
index cae9cc2fc2c..e0b61cd4b24 100644
--- a/gdb/nat/netbsd-nat.c
+++ b/gdb/nat/netbsd-nat.c
@@ -238,7 +238,7 @@ write_memory (pid_t pid, unsigned const char *writebuf, CORE_ADDR offset,
return errno;
}
if (io.piod_len == 0)
- return 0;
+ break;
bytes_written += io.piod_len;
io.piod_len = len - bytes_written;
@@ -276,7 +276,7 @@ read_memory (pid_t pid, unsigned char *readbuf, CORE_ADDR offset,
if (rv == -1)
return errno;
if (io.piod_len == 0)
- return 0;
+ break;
bytes_read += io.piod_len;
io.piod_len = len - bytes_read;