This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Fix cygwin attach command


2002-11-22  Christopher Faylor  <cgf@redhat.com>

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

Index: win32-nat.c
===================================================================
RCS file: /cvs/uberbaum/gdb/win32-nat.c,v
retrieving revision 1.65
diff -u -p -r1.65 win32-nat.c
--- win32-nat.c	22 Nov 2002 07:34:54 -0000	1.65
+++ win32-nat.c	23 Nov 2002 02:47:54 -0000
@@ -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.");


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]