aboutsummaryrefslogtreecommitdiff
path: root/gdb
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
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')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/win32-nat.c1
-rw-r--r--gdb/windows-nat.c1
3 files changed, 7 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 9821418..fccad27 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2002-11-22 Christopher Faylor <cgf@redhat.com>
+
+ * win32-nat.c (child_attach): Reset saw_create counter or subsequent
+ attach will hang.
+
2002-11-22 Andrew Cagney <ac131313@redhat.com>
* gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
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.");
diff --git a/gdb/windows-nat.c b/gdb/windows-nat.c
index 8f9697a..f3fb0a7 100644
--- a/gdb/windows-nat.c
+++ b/gdb/windows-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.");