OSDN Git Service

2007-10-02 Mark Mitchell <mark@codesourcery.com>
authordrow <drow>
Tue, 2 Oct 2007 16:09:53 +0000 (16:09 +0000)
committerdrow <drow>
Tue, 2 Oct 2007 16:09:53 +0000 (16:09 +0000)
commit3a39ab7bdb1715e2973635175205593df232c5f1
treed7f870c7c9fcc41bd667da615552a57816c4f2a9
parent2a87a1fef482be7ec0bd88cfbb775fa37dc6c8be
2007-10-02  Mark Mitchell  <mark@codesourcery.com>

* mingw-hdep.c (gdb_select): Stop helper threads before returning.
* ser-mingw.c (enum select_thread_state): New type.
(struct ser_console_state): Add have_started and thread_state.
(select_thread_wait): New function.
(thread_fn_type): New type.
(create_select_thread): New function.
(destroy_select_thread): Likewise.
(start_select_thread): Likewise.
(stop_select_thread): Likewise.
(console_select_thread): Use new functions.
(pipe_select_thread): Likewise.
(file_select_thread): Likewise.
(ser_console_wait_handle): Likewise.
(ser_console_done_wait_handle): Likewise.
(ser_console_close): Likewise.
(free_pipe_state): Likewise.
(pipe_wait_handle): Likewise.
(pipe_done_wait_handle): Likewise.
(struct net_windows_state): Derive from ser_console_state.
(net_windows_select_thread): Use new functions.
(net_windows_wait_handle): Likewise.
(net_windows_done_wait_handle): Likewise.
(net_windows_close): Likewise.
gdb/ChangeLog
gdb/mingw-hdep.c
gdb/ser-mingw.c