This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[PATCH] Fix cygwin attach command
- From: Christopher Faylor <cgf at redhat dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Fri, 22 Nov 2002 21:50:12 -0500
- Subject: [PATCH] Fix cygwin attach command
2002-11-22 Christopher Faylor <cgf@redhat.com>
* win32-nat.c (child_attach): Reset saw_create counter or subsequent
attach will hang.
Index: win32-nat.c
===================================================================
RCS file: /cvs/uberbaum/gdb/win32-nat.c,v
retrieving revision 1.65
diff -u -p -r1.65 win32-nat.c
--- win32-nat.c 22 Nov 2002 07:34:54 -0000 1.65
+++ win32-nat.c 23 Nov 2002 02:47:54 -0000
@@ -1386,6 +1386,7 @@ child_attach (char *args, int from_tty)
pid = strtoul (args, 0, 0);
ok = DebugActiveProcess (pid);
+ saw_create = 0;
if (!ok)
error ("Can't attach to process.");