diff options
Diffstat (limited to 'gdb/obsd-nat.c')
-rw-r--r-- | gdb/obsd-nat.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/gdb/obsd-nat.c b/gdb/obsd-nat.c index 044da08..890ec5e 100644 --- a/gdb/obsd-nat.c +++ b/gdb/obsd-nat.c @@ -152,13 +152,16 @@ obsd_nat_target::post_startup_inferior (ptid_t pid) obsd_enable_proc_events (pid.pid ()); } -/* Target hook for follow_fork. On entry and at return inferior_ptid is - the ptid of the followed inferior. */ +/* Target hook for follow_fork. */ void -obsd_nat_target::follow_fork (ptid_t child_ptid, target_waitkind fork_kind, +obsd_nat_target::follow_fork (inferior *child_inf, ptid_t child_ptid, + target_waitkind fork_kind, bool follow_child, bool detach_fork) { + inf_ptrace_target::follow_fork (child_inf, child_ptid, fork_kind, + follow_child, detach_fork); + if (!follow_child && detach_fork) { /* Breakpoints have already been detached from the child by |