This is the mail archive of the gdb@sourceware.cygnus.com mailing list for the GDB project. See the GDB home page for more information.


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

Re: Fix for cygwin gdb hangs


   From: Christopher Faylor <cgf@bbc.com>
   Date: Sat, 17 Jan 1998 00:20:59 -0500 (EST)

   The cygwin32 port of gdb has an annoying habit of hanging hanging Windows
   NT if the gdb 'kill' command is used or if an attempt is made to exit
   gdb without allowing the debugged program to run to completion.
   This patch should solve that problem.

   -Chris Faylor

	   Patch from cgf@bbc.com (Chris Faylor)
	   * win32-nat.c (child_mourn_inferior): Make sure that child continues
	   from EXIT_PROCESS_DEBUG or it could hang around forever.
	   (child_kill_inferior): Respond to all debug events as the child
	   is terminating or risk invoking a Windows NT bug which eventually
	   hangs the whole system.

Thanks.  I've been annoyed by that problem for a while, but never
quite enough to figure out what was causing it.  I checked the patches
into the main sources.

Ian