From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christopher Faylor To: gdb-patches Subject: Re: [RFA] win32-nat.c: Real detaching from processes under Windows XP Date: Thu, 25 Oct 2001 12:07:00 -0000 Message-id: <20011025150852.N28568@redhat.com> References: <20011025143344.A1574@cygbert.vinschen.de> X-SW-Source: 2001-10/msg00326.html On Thu, Oct 25, 2001 at 02:33:44PM +0200, Corinna Vinschen wrote: >Hi, > >Windows XP introduces an exciting new feature to the Windows debugger >world. Under XP a native debugger actually can _detach_ from processes. > >I added that feature to win32-nat.c so that the needed functions >are loaded dynamically. If that fails, gdb assumes that we are not >running under XP and behaves as before. Otherwise it will now behave >as any other system allowing detaching from processes. > >It works fine except for a special case: > >If GDB has started the process by itself (in contrast to attaching >to a running process) the detaching might crash the inferior process >when the user has just stepped into a function or gdb just stopped on >a breakpoint right at the functions entry point. If at that point >the user steps further one or two steps, everything's fine but if the >user detaches at that point, the inferior suffers from a SEGV due >to an apparently corrupted stack. Looks great, Corinna. I'd like to track down this problem eventually, though. This would be wonderful functionality to have, though, so lets get it in the trunk. I don't think its appropriate for the 5.1 branch given the above problem. cgf