aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2009-06-10 21:08:27 +0000
committerPedro Alves <palves@redhat.com>2009-06-10 21:08:27 +0000
commitbbb2952039d223ad645d07369f508606bbb82672 (patch)
treebac3649616ba4b7d2b8fa2939c712b31277a9695 /gdb
parent66852e9c4de0fbfa8be916df494f98e6bcc9eed8 (diff)
downloadgdb-bbb2952039d223ad645d07369f508606bbb82672.zip
gdb-bbb2952039d223ad645d07369f508606bbb82672.tar.gz
gdb-bbb2952039d223ad645d07369f508606bbb82672.tar.bz2
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')
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/darwin-nat.c4
2 files changed, 8 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 3d97324..d9754e5 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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
diff --git a/gdb/darwin-nat.c b/gdb/darwin-nat.c
index 8c20bd9..3246881 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);