+2009-03-12 Jonas Maebe <jonas.maebe@elis.ugent.be> (obvious change)
+
+ Fix a build failure on Darwin following some changes in
+ the profile of some target_ops methods.
+
+ * darwin-nat.c (darwin_kill_inferior): Add target_ops parameter
+ where missing.
+ (darwin_stop_inferior, darwin_detach): Likewise.
+
2009-03-12 Vladimir Prus <vladimir@codesourcery.com>
Include token in ^running notification for CLI commands.
static int darwin_lookup_task (char *args, task_t * ptask, int *ppid);
-static void darwin_kill_inferior (void);
+static void darwin_kill_inferior (struct target_ops *ops);
static void darwin_ptrace_me (void);
}
static void
-darwin_stop_inferior (darwin_inferior *inf)
+darwin_stop_inferior (struct target_ops *ops, darwin_inferior *inf)
{
struct target_waitstatus wstatus;
ptid_t ptid;
if (res != 0)
warning (_("cannot kill: %s\n"), strerror (errno));
- ptid = darwin_wait (inferior_ptid, &wstatus);
+ ptid = darwin_wait (ops, inferior_ptid, &wstatus);
gdb_assert (wstatus.kind = TARGET_WAITKIND_STOPPED);
}
if (ptid_equal (inferior_ptid, null_ptid))
return;
- darwin_stop_inferior (darwin_inf);
+ darwin_stop_inferior (ops, darwin_inf);
res = PTRACE (PT_KILL, darwin_inf->pid, 0, 0);
gdb_assert (res == 0);
kret = task_resume (darwin_inf->task);
MACH_CHECK_ERROR (kret);
- ptid = darwin_wait (inferior_ptid, &wstatus);
+ ptid = darwin_wait (ops, inferior_ptid, &wstatus);
/* This double wait seems required... */
res = waitpid (darwin_inf->pid, &status, 0);
gdb_flush (gdb_stdout);
}
- darwin_stop_inferior (darwin_inf);
+ darwin_stop_inferior (ops, darwin_inf);
kret = darwin_restore_exception_ports (darwin_inf);
MACH_CHECK_ERROR (kret);