* event-loop.c (struct callback_event): New struct.
authorDoug Evans <dje@google.com>
Mon, 3 May 2010 20:53:21 +0000 (20:53 +0000)
committerDoug Evans <dje@google.com>
Mon, 3 May 2010 20:53:21 +0000 (20:53 +0000)
commit24b066ba2b90ef215c6c414ae1d15f79a8addefc
treef27d08952131519af6cbcb930aefad2ff9cd3496
parent1ac77ea1639caba28809b36835f0c97c29a32378
* event-loop.c (struct callback_event): New struct.
(callback_list): New global.
(append_callback_event, delete_callback_event): New functions.
(process_callback): New function.
(start_event_loop): Call it.
* remote-utils.c (NOT_SCHEDULED): Define.
(readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
moved out of readchar.
(readchar): Rewrite.  Call reschedule before returning.
(reset_readchar): New function.
(remote_close): Call it.
(process_remaining, reschedule): New functions.
* server.h (callback_handler_func): New typedef.
(append_callback_event, delete_callback_event): Declare.
gdb/gdbserver/ChangeLog
gdb/gdbserver/event-loop.c
gdb/gdbserver/remote-utils.c
gdb/gdbserver/server.h