Remove use of queue.h from gdbserver/event-loop.c
authorTom Tromey <tom@tromey.com>
Thu, 7 Jun 2018 22:28:22 +0000 (16:28 -0600)
committerTom Tromey <tom@tromey.com>
Sat, 9 Jun 2018 22:12:15 +0000 (16:12 -0600)
commit405918449085378e96dc841a3d536ce161ce1539
treef741eeae822ba9e03f900d77b76774eb756f6817
parent77ad7394454c29cc7a4a865cd226491df457f6f6
Remove use of queue.h from gdbserver/event-loop.c

This removes a use of queue.h from gdbserver/event-loop.c, replacing
it with std::queue.

I was not completely sure whether std::queue is even that useful.
Perhaps plain std::list could be used just as easily.

Tested by the buildbot.

gdb/gdbserver/ChangeLog
2018-06-09  Tom Tromey  <tom@tromey.com>

* event-loop.c (gdb_event, gdb_event_p): Remove typedefs.  Don't
declare queue.
(event_queue): Use std::queue.
(gdb_event_xfree): Remove.
(initialize_event_loop, process_event, wait_for_event): Update.
gdb/gdbserver/ChangeLog
gdb/gdbserver/event-loop.c