[gdbserver] Split a new hostio.h file out of server.h.
authorPedro Alves <palves@redhat.com>
Thu, 5 Sep 2013 20:45:39 +0000 (20:45 +0000)
committerPedro Alves <palves@redhat.com>
Thu, 5 Sep 2013 20:45:39 +0000 (20:45 +0000)
gdb/gdbserver/
2013-09-05  Pedro Alves  <palves@redhat.com>

* server.h (handle_vFile, hostio_last_error_from_errno): Move
to ...
* hostio.h: ... this new file.
* hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
win32-low.c: Include hostio.h.

gdb/gdbserver/ChangeLog
gdb/gdbserver/hostio.c
gdb/gdbserver/linux-low.c
gdb/gdbserver/nto-low.c
gdb/gdbserver/server.c
gdb/gdbserver/server.h
gdb/gdbserver/spu-low.c
gdb/gdbserver/win32-low.c

index 0c0034b272b4fbb7572463b9b7daae90dd2a8bb5..4df473b0864c5f4ce592a097ccebd301928f59b9 100644 (file)
@@ -1,3 +1,11 @@
+2013-09-05  Pedro Alves  <palves@redhat.com>
+
+       * server.h (handle_vFile, hostio_last_error_from_errno): Move
+       to ...
+       * hostio.h: ... this new file.
+       * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
+       win32-low.c: Include hostio.h.
+
 2013-09-05  Pedro Alves  <palves@redhat.com>
 
        * server.h (gdb_client_data, handler_func, callback_handler_func)
index a74c2f880dff76369dbdd8da20b954759b05357c..8edbadb45a2188a347c76b939dce70c47566a649 100644 (file)
@@ -20,6 +20,7 @@
 
 #include "server.h"
 #include "gdb/fileio.h"
+#include "hostio.h"
 
 #include <fcntl.h>
 #include <limits.h>
index 7c950589ec35d1c348a635188f04b837864e308c..799fcc99af7b431ce2209f62bb7def66d0ffcd75 100644 (file)
@@ -46,6 +46,7 @@
 #include <sys/uio.h>
 #include "filestuff.h"
 #include "tracepoint.h"
+#include "hostio.h"
 #ifndef ELFMAG0
 /* Don't include <linux/elf.h> here.  If it got included by gdb_proc_service.h
    then ELFMAG0 will have been defined.  If it didn't get included by
index 36701337c8f11524f7e02474eba28025f1bb682c..6f764ff5e214dad68fe9fca1de55e67e8951c9bb 100644 (file)
@@ -21,6 +21,7 @@
 #include "server.h"
 #include "gdbthread.h"
 #include "nto-low.h"
+#include "hostio.h"
 
 #include <limits.h>
 #include <fcntl.h>
index 6ca7fe1a3d8a17951ce7d33f5cd17a4828f4a205..f4e152526e97ce736ac8109b3a82c1e850f17f5c 100644 (file)
@@ -31,6 +31,7 @@
 #include "filestuff.h"
 #include "tracepoint.h"
 #include "dll.h"
+#include "hostio.h"
 
 /* The thread set with an `Hc' packet.  `Hc' is deprecated in favor of
    `vCont'.  Note the multi-process extensions made `vCont' a
index 53127bf95a170979216051a5177936d87fae473c..05724e03210c76dbf2094edbe8272aef0162cf93 100644 (file)
@@ -144,12 +144,6 @@ typedef int gdb_fildes_t;
 extern int handle_serial_event (int err, gdb_client_data client_data);
 extern int handle_target_event (int err, gdb_client_data client_data);
 
-/* Functions from hostio.c.  */
-extern int handle_vFile (char *, int, int *);
-
-/* Functions from hostio-errno.c.  */
-extern void hostio_last_error_from_errno (char *own_buf);
-
 #include "remote-utils.h"
 
 #include "common-utils.h"
index e604b9f62bfdcc894d3433df3f4c916a3d34c60b..49b02a641f01333d988cfd50c8fba5058c44470c 100644 (file)
@@ -30,6 +30,7 @@
 #include <errno.h>
 #include <sys/syscall.h>
 #include "filestuff.h"
+#include "hostio.h"
 
 /* Some older glibc versions do not define this.  */
 #ifndef __WNOTHREAD
index a32cea4da26061e98e1d3945b929fbd86e87dca3..979eedd5f8056246662196ff7e6f35dbd724b2f8 100644 (file)
@@ -26,6 +26,7 @@
 #include "win32-low.h"
 #include "gdbthread.h"
 #include "dll.h"
+#include "hostio.h"
 
 #include <stdint.h>
 #include <windows.h>