gdb/
authorYao Qi <yao@codesourcery.com>
Fri, 25 Jan 2013 14:17:10 +0000 (14:17 +0000)
committerYao Qi <yao@codesourcery.com>
Fri, 25 Jan 2013 14:17:10 +0000 (14:17 +0000)
commit843b20dc1df1b9ab8e8478b0743ac927e5b132d4
tree492103315646bffb633e0252e08d57192b3f877f
parent20ad88565a4909b8ce43f715dde69045de91dcdd
gdb/
* event-loop.c: Include "queue.h".
(gdb_event_p): New typedef.
(DECLARE_QUEUE_P): Use.
(DEFINE_QUEUE_P): Use.
(async_queue_event): Remove.
(gdb_event_xfree): New.
(initialize_event_loop): New.
(process_event): Use QUEUE macros.
(event_queue): Remove.
(gdb_wait_for_event): Caller update.
(check_async_event_handlers): Likewise.
(poll_timers): Likewise.
* event-loop.h (initialize_event_loop): Declare.
* event-loop.c (gdb_event_xfree): New.
* top.c (gdb_init): Call initialize_event_loop.
gdb/ChangeLog
gdb/event-loop.c
gdb/event-loop.h
gdb/top.c