diff options
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/win32-nat.c | 1 | ||||
-rw-r--r-- | gdb/windows-nat.c | 1 |
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."); |