aboutsummaryrefslogtreecommitdiff
path: root/gdb/remote-fileio.c
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2010-05-16 21:11:14 +0000
committerMichael Snyder <msnyder@vmware.com>2010-05-16 21:11:14 +0000
commit123f5f96b6f084af89436ac1efaf7b77ab66bbe5 (patch)
tree1a1404dc4f92f1e55533e57584b9f35aa43628b0 /gdb/remote-fileio.c
parenta744cf537ec1cf2e102bc63b83b820cd4dd48783 (diff)
downloadgdb-123f5f96b6f084af89436ac1efaf7b77ab66bbe5.zip
gdb-123f5f96b6f084af89436ac1efaf7b77ab66bbe5.tar.gz
gdb-123f5f96b6f084af89436ac1efaf7b77ab66bbe5.tar.bz2
2010-05-16 Michael Snyder <msnyder@vmware.com>
* record.c: White space. * regcache.c: White space. * reggroups.c: White space. * remote-fileio.c: White space. * remote-m32r-sdi.c: White space. * remote-mips.c: White space. * remote-sim.c: White space.
Diffstat (limited to 'gdb/remote-fileio.c')
-rw-r--r--gdb/remote-fileio.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/remote-fileio.c b/gdb/remote-fileio.c
index 2166925..82a4fe9 100644
--- a/gdb/remote-fileio.c
+++ b/gdb/remote-fileio.c
@@ -109,6 +109,7 @@ static int
remote_fileio_fd_to_targetfd (int fd)
{
int target_fd = remote_fileio_next_free_fd ();
+
remote_fio_data.fd_map[target_fd] = fd;
return target_fd;
}
@@ -1477,6 +1478,7 @@ set_system_call_allowed (char *args, int from_tty)
{
char *arg_end;
int val = strtoul (args, &arg_end, 10);
+
if (*args && *arg_end == '\0')
{
remote_fio_system_call_allowed = !!val;