summaryrefslogtreecommitdiff
path: root/gdb/win32-nat.c
diff options
context:
space:
mode:
authorChristopher Faylor <me+cygwin@cgf.cx>2002-11-23 02:49:45 +0000
committerChristopher Faylor <me+cygwin@cgf.cx>2002-11-23 02:49:45 +0000
commitb589d0c74da4012f8440643331c122137a8604bc (patch)
tree0a335c369ab5516a12488096c803d1cf31b33187 /gdb/win32-nat.c
parentc5f5b6d954f66d855ee8680c3c2e39b1167e0b7e (diff)
downloadgdb-b589d0c74da4012f8440643331c122137a8604bc.tar.gz
* win32-nat.c (child_attach): Reset saw_create counter or subsequent attach
will hang.
Diffstat (limited to 'gdb/win32-nat.c')
-rw-r--r--gdb/win32-nat.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/win32-nat.c b/gdb/win32-nat.c
index 8f9697a3f58..f3fb0a7a970 100644
--- a/gdb/win32-nat.c
+++ b/gdb/win32-nat.c
@@ -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.");