This is the mail archive of the gdb-patches@sources.redhat.com 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]

Re: [RFA] win32-nat.c: Real detaching from processes under Windows XP


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


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