2009-06-10 Jonas Maebe <jonas.maebe@elis.ugent.be>
authorPedro Alves <palves@redhat.com>
Wed, 10 Jun 2009 21:08:27 +0000 (21:08 +0000)
committerPedro Alves <palves@redhat.com>
Wed, 10 Jun 2009 21:08:27 +0000 (21:08 +0000)
* darwin-nat.c (darwin_stop_inferior): Pass 0 as options to
darwin_wait (blocking wait).
(darwin_kill_inferior): Likewise.

gdb/ChangeLog
gdb/darwin-nat.c

index 3d97324..d9754e5 100644 (file)
@@ -1,3 +1,9 @@
+2009-06-10  Jonas Maebe  <jonas.maebe@elis.ugent.be>
+
+       * darwin-nat.c (darwin_stop_inferior): Pass 0 as options to
+       darwin_wait (blocking wait).
+       (darwin_kill_inferior): Likewise.
+
 2009-06-10  Pedro Alves  <pedro@codesourcery.com>
 
        * infrun.c (handle_inferior_event): Update comment around trying
index 8c20bd9..3246881 100644 (file)
@@ -688,7 +688,7 @@ darwin_stop_inferior (struct target_ops *ops, darwin_inferior *inf)
   if (res != 0)
     warning (_("cannot kill: %s\n"), safe_strerror (errno));
 
-  ptid = darwin_wait (ops, inferior_ptid, &wstatus);
+  ptid = darwin_wait (ops, inferior_ptid, &wstatus, 0);
   gdb_assert (wstatus.kind = TARGET_WAITKIND_STOPPED);
 }
 
@@ -720,7 +720,7 @@ darwin_kill_inferior (struct target_ops *ops)
   kret = task_resume (darwin_inf->task);
   MACH_CHECK_ERROR (kret);
 
-  ptid = darwin_wait (ops, inferior_ptid, &wstatus);
+  ptid = darwin_wait (ops, inferior_ptid, &wstatus, 0);
 
   /* This double wait seems required...  */
   res = waitpid (darwin_inf->pid, &status, 0);