From 91a175b3f17622daff7c96610bea362075972421 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Sat, 23 Nov 2002 02:49:45 +0000 Subject: [PATCH] * win32-nat.c (child_attach): Reset saw_create counter or subsequent attach will hang. --- gdb/ChangeLog | 5 +++++ gdb/win32-nat.c | 1 + gdb/windows-nat.c | 1 + 3 files changed, 7 insertions(+) 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 + + * win32-nat.c (child_attach): Reset saw_create counter or subsequent + attach will hang. + 2002-11-22 Andrew Cagney * 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."); diff --git a/gdb/windows-nat.c b/gdb/windows-nat.c index 8f9697a3f58..f3fb0a7a970 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."); -- 2.30.2