*win32-nat.c (open_process_used): New static variable.
authorChristopher Faylor <me+cygwin@cgf.cx>
Sun, 2 Dec 2007 05:45:08 +0000 (05:45 +0000)
committerChristopher Faylor <me+cygwin@cgf.cx>
Sun, 2 Dec 2007 05:45:08 +0000 (05:45 +0000)
commitbf25528d6baf71978e5b48bb0f66b0be8b474baa
tree3b31e2a8bc19c7f2ea22c9405d32eb245b5fd9b2
parentc0bfb684f7ff11e61c0ac609b682ffe02ecdc330
*win32-nat.c (open_process_used): New static variable.
(win32_init_thread_list): Remove call to CloseHandle for thread.
(win32_delete_thread): Ditto.
(fake_create_process): Set open_process_used if OpenProcess call is successful.
(get_win32_debug_event): Do not close process handle.
(do_initial_win32_stuff): Set open_process_used to zero.
(win32_mourn_inferior): Call CloseHandle for current_process_handle if
open_process_used is set.
(win32_kill_inferior): Do not close process and main_thread handles.
gdb/ChangeLog
gdb/win32-nat.c
gdb/windows-nat.c