diff options
author | Christopher Faylor <me+cygwin@cgf.cx> | 2002-11-23 02:49:45 +0000 |
---|---|---|
committer | Christopher Faylor <me+cygwin@cgf.cx> | 2002-11-23 02:49:45 +0000 |
commit | 91a175b3f17622daff7c96610bea362075972421 (patch) | |
tree | 576692b77d21e6f28fa9fddb60b44c5307c0062a /gdb/win32-nat.c | |
parent | f4ded5b12117d22df18a92b5e0c5b895df64fb59 (diff) | |
download | gdb-91a175b3f17622daff7c96610bea362075972421.zip gdb-91a175b3f17622daff7c96610bea362075972421.tar.gz 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.c | 1 |
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."); |