From bbb2952039d223ad645d07369f508606bbb82672 Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Wed, 10 Jun 2009 21:08:27 +0000 Subject: [PATCH] 2009-06-10 Jonas Maebe * darwin-nat.c (darwin_stop_inferior): Pass 0 as options to darwin_wait (blocking wait). (darwin_kill_inferior): Likewise. --- gdb/ChangeLog | 6 ++++++ gdb/darwin-nat.c | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 3d97324ccde..d9754e55c2d 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2009-06-10 Jonas Maebe + + * darwin-nat.c (darwin_stop_inferior): Pass 0 as options to + darwin_wait (blocking wait). + (darwin_kill_inferior): Likewise. + 2009-06-10 Pedro Alves * infrun.c (handle_inferior_event): Update comment around trying 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); -- 2.30.2