This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA 2] gdb/win32-nat.c: do not call CloseHandle on process and thread handles


On Mon, Nov 26, 2007 at 10:21:42AM +0100, Pierre Muller wrote:
>2007-11-26  Pierre Muller  <muller@ics.u-strasbg.fr>
>
>	*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.

Approved and applied.

Sorry for the delay.  My cygwin build script for gdb is showing its age
and need some kicking with steel-toed shoes.

cgf


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]