aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2013-09-05 20:42:52 +0000
committerPedro Alves <palves@redhat.com>2013-09-05 20:42:52 +0000
commit0ce3d3b5aad3c3687c8b2d3a5f3bc00207f701b8 (patch)
tree2b0de12e484e1298cbf9c1fef02b25d5117c2cd5 /gdb
parent799cdc37289ab867a0c2f8d57eae4551fc16b9b2 (diff)
downloadgdb-0ce3d3b5aad3c3687c8b2d3a5f3bc00207f701b8.zip
gdb-0ce3d3b5aad3c3687c8b2d3a5f3bc00207f701b8.tar.gz
gdb-0ce3d3b5aad3c3687c8b2d3a5f3bc00207f701b8.tar.bz2
[gdbserver] Split a new event-loop.h file out of server.h.
gdb/gdbserver/ 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): Move to event-loop.h and include it. * event-loop.h: New file.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/gdbserver/ChangeLog8
-rw-r--r--gdb/gdbserver/server.h15
2 files changed, 9 insertions, 14 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog
index d9f55da..0c0034b 100644
--- a/gdb/gdbserver/ChangeLog
+++ b/gdb/gdbserver/ChangeLog
@@ -1,5 +1,13 @@
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):
+ Move to event-loop.h and include it.
+ * event-loop.h: New file.
+
+2013-09-05 Pedro Alves <palves@redhat.com>
+
* dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
* server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
(loaded_dll, unloaded_dll): Move to ...
diff --git a/gdb/gdbserver/server.h b/gdb/gdbserver/server.h
index ab52738..53127bf 100644
--- a/gdb/gdbserver/server.h
+++ b/gdb/gdbserver/server.h
@@ -138,20 +138,7 @@ typedef SOCKET gdb_fildes_t;
typedef int gdb_fildes_t;
#endif
-/* Functions from event-loop.c. */
-typedef void *gdb_client_data;
-typedef int (handler_func) (int, gdb_client_data);
-typedef int (callback_handler_func) (gdb_client_data);
-
-extern void delete_file_handler (gdb_fildes_t fd);
-extern void add_file_handler (gdb_fildes_t fd, handler_func *proc,
- gdb_client_data client_data);
-extern int append_callback_event (callback_handler_func *proc,
- gdb_client_data client_data);
-extern void delete_callback_event (int id);
-
-extern void start_event_loop (void);
-extern void initialize_event_loop (void);
+#include "event-loop.h"
/* Functions from server.c. */
extern int handle_serial_event (int err, gdb_client_data client_data);