summaryrefslogtreecommitdiff
path: root/gdb/darwin-nat.c
diff options
context:
space:
mode:
authorPedro Alves <pedro@codesourcery.com>2009-06-10 21:08:27 +0000
committerPedro Alves <pedro@codesourcery.com>2009-06-10 21:08:27 +0000
commit82c47ca870a245321b4e0d5be676e869c6478cdb (patch)
treee4cd7674540eda4246df4e8cee08aa8a61ea1557 /gdb/darwin-nat.c
parent27305e21926948d6b1ed549d6755521dcb898936 (diff)
downloadgdb-82c47ca870a245321b4e0d5be676e869c6478cdb.tar.gz
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.
Diffstat (limited to 'gdb/darwin-nat.c')
-rw-r--r--gdb/darwin-nat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/darwin-nat.c b/gdb/darwin-nat.c
index 8c20bd905a0..3246881aaab 100644
--- a/gdb/darwin-nat.c
+++ b/gdb/darwin-nat.c
@@ -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);