diff options
author | Yao Qi <yao@codesourcery.com> | 2013-01-25 14:12:02 +0000 |
---|---|---|
committer | Yao Qi <yao@codesourcery.com> | 2013-01-25 14:12:02 +0000 |
commit | 60f662b0e8783dfef9e02f5736c111ae46bd4241 (patch) | |
tree | a563aae5e42a1cfecce09d02d28dd6fa9b4eb3e9 /gdb/gdbserver/server.h | |
parent | 0a4e6638daeca240a146c9b33219dffe1bd66afc (diff) | |
download | gdb-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.h')
-rw-r--r-- | gdb/gdbserver/server.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/gdbserver/server.h b/gdb/gdbserver/server.h index 1cbca02..139cd49 100644 --- a/gdb/gdbserver/server.h +++ b/gdb/gdbserver/server.h @@ -259,6 +259,7 @@ extern int append_callback_event (callback_handler_func *proc, extern void delete_callback_event (int id); extern void start_event_loop (void); +extern void initialize_event_loop (void); /* Functions from server.c. */ extern int handle_serial_event (int err, gdb_client_data client_data); |