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]

Fix for cygwin gdb hangs


Hello,
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.

begin 664 /tmp/gdbpatch.gz
M'XL(```````"`Y5476^;,!1]AE]Q]U)!!DT,%9!$T:02TK)*-%KIMC=$P"1>
MJ8D,M`]5__ML""L*6:;Y`>S[><[QA91D&>@L64.Q33?ZU$;(L,9\.WXEU#1T
M&E>7"?S=)8]&H[.IX:Z&)4X`(9A<S0QS9B!`TZDMZ[I^IBZL&(&O,05D@6',
M3#0S+)'GB(;]U0"P+4>S;1,:@RC<&BS@>UT&**NX(@F\%"3EIV1'\C1Z+FI&
M(T(SS$C!0%&YYTW^#`"*B%/!+6A%:(V7>%-OO1=,*U"2FC&^B?:L2'!91B35
M>(HD22!6YZUV#,?ID7-Y?1.Y]T'H!X^>.I>%J:;[NMQ%5<RVF!>_:($5^_+@
MWV+*P25#J,+]?E()9^)H#NHIX2"D.:;1*=&V>")YWJO7\&WHBZ[NK>?>@1)B
M]DSX7>!URW5`7H.)RI$(Q9I')DK-YVISZ+1LF'O7CS>1]]T+0L!"Q_D?%\E`
M^?3_0O]#ZB.Q!2)IP^.>CAK_B$FU*EB_[T4#4`,_6/F!'YY.'C2'14OL,GT-
M&YN?#J,_J/3"#^+VXP6TSOT!S2U2#(L%>#_],%I_NW>]AX>HI^P0YSM_]R_4
MS8L2W\8TS?%`7_4P<>="6[9=9#NT1Z/))U,:\_\!@U]U69W\T+[`:"S_!@F+
&4D=V!```
`
end