aboutsummaryrefslogtreecommitdiff
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
commit91a175b3f17622daff7c96610bea362075972421 (patch)
tree576692b77d21e6f28fa9fddb60b44c5307c0062a /gdb/win32-nat.c
parentf4ded5b12117d22df18a92b5e0c5b895df64fb59 (diff)
downloadfsf-binutils-gdb-91a175b3f17622daff7c96610bea362075972421.zip
fsf-binutils-gdb-91a175b3f17622daff7c96610bea362075972421.tar.gz
fsf-binutils-gdb-91a175b3f17622daff7c96610bea362075972421.tar.bz2
* 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 8f9697a..f3fb0a7 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.");