aboutsummaryrefslogtreecommitdiff
path: root/gdb/inf-child.c
diff options
context:
space:
mode:
authorGary Benson <gbenson@redhat.com>2015-04-09 14:22:56 +0100
committerGary Benson <gbenson@redhat.com>2015-04-09 15:44:31 +0100
commit7823a9415b2919241f7a7425d9dcc3c62ada0779 (patch)
tree238d4dccfc050a06cba128899f88a6a8407feb77 /gdb/inf-child.c
parent233723a43c5677ae6a5a8bd9c2ac54bae333fe26 (diff)
downloadgdb-7823a9415b2919241f7a7425d9dcc3c62ada0779.zip
gdb-7823a9415b2919241f7a7425d9dcc3c62ada0779.tar.gz
gdb-7823a9415b2919241f7a7425d9dcc3c62ada0779.tar.bz2
Rename common-remote-fileio.[ch] as fileio.[ch]
This commit renames common-remote-fileio.[ch] as fileio.[ch] and renames all functions in these files. gdb/ChangeLog: * common/common-remote-fileio.h: Rename to... * common/fileio.h: ...this. Update all references. (remote_fileio_to_fio_error): Rename to... (host_to_fileio_error): ...this. (remote_fileio_to_be): Rename to... (host_to_bigendian): ...this. Update all callers. (remote_fileio_to_fio_uint): Rename to... (host_to_fileio_uint): ...this. Update all callers. (remote_fileio_to_fio_time): Rename to... (host_to_fileio_time): ...this. Update all callers. (remote_fileio_to_fio_stat): Rename to... (host_to_fileio_stat): ...this. Update all references. * common/common-remote-fileio.c: Rename to... * common/fileio.c: ...this. Update all references. (remote_fileio_to_fio_error): Rename to... (host_to_fileio_error): ...this. Update all callers. (remote_fileio_mode_to_target): Rename to... (fileio_mode_pack): ...this. Update all callers. (remote_fileio_to_fio_mode): Rename to... (host_to_fileio_mode): ...this. Update all callers. (remote_fileio_to_fio_ulong): Rename to... (host_to_fileio_ulong): ...this. Update all callers. (remote_fileio_to_fio_stat): Rename to... (host_to_fileio_stat): ...this. Update all callers.
Diffstat (limited to 'gdb/inf-child.c')
-rw-r--r--gdb/inf-child.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/gdb/inf-child.c b/gdb/inf-child.c
index 5e5763b..713c9d4 100644
--- a/gdb/inf-child.c
+++ b/gdb/inf-child.c
@@ -30,7 +30,7 @@
#include "inferior.h"
#include <sys/stat.h>
#include "inf-child.h"
-#include "common-remote-fileio.h"
+#include "fileio.h"
#include "agent.h"
#include "gdb_wait.h"
#include "filestuff.h"
@@ -260,7 +260,7 @@ inf_child_fileio_open (struct target_ops *self,
the standard values. */
fd = gdb_open_cloexec (filename, nat_flags, mode);
if (fd == -1)
- *target_errno = remote_fileio_to_fio_error (errno);
+ *target_errno = host_to_fileio_error (errno);
return fd;
}
@@ -289,7 +289,7 @@ inf_child_fileio_pwrite (struct target_ops *self,
}
if (ret == -1)
- *target_errno = remote_fileio_to_fio_error (errno);
+ *target_errno = host_to_fileio_error (errno);
return ret;
}
@@ -318,7 +318,7 @@ inf_child_fileio_pread (struct target_ops *self,
}
if (ret == -1)
- *target_errno = remote_fileio_to_fio_error (errno);
+ *target_errno = host_to_fileio_error (errno);
return ret;
}
@@ -332,7 +332,7 @@ inf_child_fileio_fstat (struct target_ops *self, int fd,
ret = fstat (fd, sb);
if (ret == -1)
- *target_errno = remote_fileio_to_fio_error (errno);
+ *target_errno = host_to_fileio_error (errno);
return ret;
}
@@ -346,7 +346,7 @@ inf_child_fileio_close (struct target_ops *self, int fd, int *target_errno)
ret = close (fd);
if (ret == -1)
- *target_errno = remote_fileio_to_fio_error (errno);
+ *target_errno = host_to_fileio_error (errno);
return ret;
}
@@ -361,7 +361,7 @@ inf_child_fileio_unlink (struct target_ops *self,
ret = unlink (filename);
if (ret == -1)
- *target_errno = remote_fileio_to_fio_error (errno);
+ *target_errno = host_to_fileio_error (errno);
return ret;
}
@@ -383,7 +383,7 @@ inf_child_fileio_readlink (struct target_ops *self,
len = readlink (filename, buf, sizeof buf);
if (len < 0)
{
- *target_errno = remote_fileio_to_fio_error (errno);
+ *target_errno = host_to_fileio_error (errno);
return NULL;
}