aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver/server.c
diff options
context:
space:
mode:
authorYao Qi <yao@codesourcery.com>2013-01-25 14:12:02 +0000
committerYao Qi <yao@codesourcery.com>2013-01-25 14:12:02 +0000
commit60f662b0e8783dfef9e02f5736c111ae46bd4241 (patch)
treea563aae5e42a1cfecce09d02d28dd6fa9b4eb3e9 /gdb/gdbserver/server.c
parent0a4e6638daeca240a146c9b33219dffe1bd66afc (diff)
downloadgdb-60f662b0e8783dfef9e02f5736c111ae46bd4241.zip
gdb-60f662b0e8783dfef9e02f5736c111ae46bd4241.tar.gz
gdb-60f662b0e8783dfef9e02f5736c111ae46bd4241.tar.bz2
gdb/gdbserver
* event-loop.c: Include "queue.h". (gdb_event_p): New typedef. (struct gdb_event) <next_event>: Remove. (event_queue): Change to QUEUE(gdb_event_p). (async_queue_event): Remove. (gdb_event_xfree): New. (initialize_event_loop): New. (process_event): Use API from QUEUE. (wait_for_event): Likewise. * server.c (main): Call initialize_event_loop. * server.h (initialize_event_loop): Declare.
Diffstat (limited to 'gdb/gdbserver/server.c')
-rw-r--r--gdb/gdbserver/server.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/gdbserver/server.c b/gdb/gdbserver/server.c
index 4af9436..775d9ef 100644
--- a/gdb/gdbserver/server.c
+++ b/gdb/gdbserver/server.c
@@ -2687,6 +2687,7 @@ main (int argc, char *argv[])
initialize_async_io ();
initialize_low ();
+ initialize_event_loop ();
if (target_supports_tracepoints ())
initialize_tracepoint ();