[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 0c0034b..4df473b 100644 (file)
@@ -1,5 +1,13 @@
 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)
        (delete_file_handler, add_file_handler, append_callback_event)
        (delete_callback_event, start_event_loop, initialize_event_loop):
index a74c2f8..8edbadb 100644 (file)
@@ -20,6 +20,7 @@
 
 #include "server.h"
 #include "gdb/fileio.h"
+#include "hostio.h"
 
 #include <fcntl.h>
 #include <limits.h>
index 7c95058..799fcc9 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 3670133..6f764ff 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 6ca7fe1..f4e1525 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 53127bf..05724e0 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 e604b9f..49b02a6 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 a32cea4..979eedd 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>