Switch gdbserver to gdbsupport event loop
authorTom Tromey <tom@tromey.com>
Mon, 13 Apr 2020 18:42:59 +0000 (12:42 -0600)
committerTom Tromey <tromey@adacore.com>
Mon, 13 Apr 2020 20:10:04 +0000 (14:10 -0600)
commit55d7aec85e81c4597e94ebcc8b85f20a1d439bd0
tree664fe7b861844fbe141d01768c38e2f6b033399e
parente487f9949ab654b20da8ac01b8311ae956136e5e
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.
gdbserver/ChangeLog
gdbserver/Makefile.in
gdbserver/event-loop.cc [deleted file]
gdbserver/event-loop.h [deleted file]
gdbserver/remote-utils.cc
gdbserver/server.cc
gdbserver/server.h