summaryrefslogtreecommitdiff
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
parentc5f5b6d954f66d855ee8680c3c2e39b1167e0b7e (diff)
downloadgdb-b589d0c74da4012f8440643331c122137a8604bc.tar.gz
* win32-nat.c (child_attach): Reset saw_create counter or subsequent attach
will hang.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/win32-nat.c1
2 files changed, 6 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 982141854be..fccad2782cb 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 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.");