diff options
author | Gary Benson <gbenson@redhat.com> | 2015-04-09 14:22:56 +0100 |
---|---|---|
committer | Gary Benson <gbenson@redhat.com> | 2015-04-09 15:44:31 +0100 |
commit | 7823a9415b2919241f7a7425d9dcc3c62ada0779 (patch) | |
tree | 238d4dccfc050a06cba128899f88a6a8407feb77 /gdb/gdbserver | |
parent | 233723a43c5677ae6a5a8bd9c2ac54bae333fe26 (diff) | |
download | gdb-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/gdbserver')
-rw-r--r-- | gdb/gdbserver/Makefile.in | 6 | ||||
-rw-r--r-- | gdb/gdbserver/hostio-errno.c | 4 | ||||
-rw-r--r-- | gdb/gdbserver/hostio.c | 4 |
3 files changed, 7 insertions, 7 deletions
diff --git a/gdb/gdbserver/Makefile.in b/gdb/gdbserver/Makefile.in index 9d698c6..a981ee8 100644 --- a/gdb/gdbserver/Makefile.in +++ b/gdb/gdbserver/Makefile.in @@ -180,7 +180,7 @@ SFILES= $(srcdir)/gdbreplay.c $(srcdir)/inferiors.c $(srcdir)/dll.c \ $(srcdir)/common/common-debug.c $(srcdir)/common/cleanups.c \ $(srcdir)/common/common-exceptions.c $(srcdir)/symbol.c \ $(srcdir)/common/btrace-common.c \ - $(srcdir)/common/common-remote-fileio.c + $(srcdir)/common/fileio.c DEPFILES = @GDBSERVER_DEPFILES@ @@ -194,7 +194,7 @@ OBS = agent.o ax.o inferiors.o regcache.o remote-utils.o server.o signals.o \ mem-break.o hostio.o event-loop.o tracepoint.o xml-utils.o \ common-utils.o ptid.o buffer.o format.o filestuff.o dll.o notif.o \ tdesc.o print-utils.o rsp-low.o errors.o common-debug.o cleanups.o \ - common-exceptions.o symbol.o btrace-common.o common-remote-fileio.o \ + common-exceptions.o symbol.o btrace-common.o fileio.o \ $(XML_BUILTIN) $(DEPFILES) $(LIBOBJS) GDBREPLAY_OBS = gdbreplay.o version.o GDBSERVER_LIBS = @GDBSERVER_LIBS@ @@ -573,7 +573,7 @@ common-exceptions.o: ../common/common-exceptions.c waitstatus.o: ../target/waitstatus.c $(COMPILE) $< $(POSTCOMPILE) -common-remote-fileio.o: ../common/common-remote-fileio.c +fileio.o: ../common/fileio.c $(COMPILE) $< $(POSTCOMPILE) diff --git a/gdb/gdbserver/hostio-errno.c b/gdb/gdbserver/hostio-errno.c index 01d4b32..452ec9f 100644 --- a/gdb/gdbserver/hostio-errno.c +++ b/gdb/gdbserver/hostio-errno.c @@ -22,12 +22,12 @@ on top of errno. */ #include "server.h" -#include "common-remote-fileio.h" +#include "fileio.h" void hostio_last_error_from_errno (char *buf) { int error = errno; - int fileio_error = remote_fileio_to_fio_error (error); + int fileio_error = host_to_fileio_error (error); sprintf (buf, "F-1,%x", fileio_error); } diff --git a/gdb/gdbserver/hostio.c b/gdb/gdbserver/hostio.c index aa659e2..b03b5ad 100644 --- a/gdb/gdbserver/hostio.c +++ b/gdb/gdbserver/hostio.c @@ -27,7 +27,7 @@ #include <unistd.h> #include <sys/types.h> #include <sys/stat.h> -#include "common-remote-fileio.h" +#include "fileio.h" extern int remote_debug; @@ -438,7 +438,7 @@ handle_fstat (char *own_buf, int *new_packet_len) return; } - remote_fileio_to_fio_stat (&st, &fst); + host_to_fileio_stat (&st, &fst); bytes_sent = hostio_reply_with_data (own_buf, (char *) &fst, sizeof (fst), |