aboutsummaryrefslogtreecommitdiff
path: root/gdbserver/server.h
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2020-04-13 12:42:59 -0600
committerTom Tromey <tromey@adacore.com>2020-04-13 14:10:04 -0600
commit55d7aec85e81c4597e94ebcc8b85f20a1d439bd0 (patch)
tree664fe7b861844fbe141d01768c38e2f6b033399e /gdbserver/server.h
parente487f9949ab654b20da8ac01b8311ae956136e5e (diff)
downloadgdb-55d7aec85e81c4597e94ebcc8b85f20a1d439bd0.zip
gdb-55d7aec85e81c4597e94ebcc8b85f20a1d439bd0.tar.gz
gdb-55d7aec85e81c4597e94ebcc8b85f20a1d439bd0.tar.bz2
Switch gdbserver to gdbsupport event loop
This changes gdbserver to use the gdbserver event loop, removing the ancient fork. gdbserver/ChangeLog 2020-04-13 Tom Tromey <tom@tromey.com> * server.h (handle_serial_event, handle_target_event): Update. * server.c: Don't call initialize_event_loop. (keep_processing_events): New global. (handle_serial_event): Return void. Set keep_processing_events. (handle_target_event): Return void. (start_event_loop): Move from event-loop.c. Rewrite. * remote-utils.c (handle_accept_event): Return void. (reset_readchar): Use delete_timer. (process_remaining): Return void. (reschedule): Use create_timer. * event-loop.h: Remove. * event-loop.cc: Remove. * Makefile.in (OBS): Use gdbsupport/event-loop.o, not event-loop.o.
Diffstat (limited to 'gdbserver/server.h')
-rw-r--r--gdbserver/server.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdbserver/server.h b/gdbserver/server.h
index 5ef48b6..039082e 100644
--- a/gdbserver/server.h
+++ b/gdbserver/server.h
@@ -88,13 +88,13 @@ typedef SOCKET gdb_fildes_t;
typedef int gdb_fildes_t;
#endif
-#include "event-loop.h"
+#include "gdbsupport/event-loop.h"
/* Functions from server.c. */
extern void handle_v_requests (char *own_buf, int packet_len,
int *new_packet_len);
-extern int handle_serial_event (int err, gdb_client_data client_data);
-extern int handle_target_event (int err, gdb_client_data client_data);
+extern void handle_serial_event (int err, gdb_client_data client_data);
+extern void handle_target_event (int err, gdb_client_data client_data);
/* Get rid of the currently pending stop replies that match PTID. */
extern void discard_queued_stop_replies (ptid_t ptid);