* win32-nat.c (child_attach): Reset saw_create counter or subsequent attach

will hang.
This commit is contained in:
Christopher Faylor 2002-11-23 02:49:45 +00:00
parent f4ded5b121
commit 91a175b3f1
3 changed files with 7 additions and 0 deletions

View file

@ -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

View file

@ -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.");

View file

@ -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.");