From 07107ca6f983e2dde5fa669a56563760a1f44c11 Mon Sep 17 00:00:00 2001 From: Luis Machado Date: Tue, 3 Sep 2013 17:22:45 +0000 Subject: * inf-child.c (inf_child_follow_fork) New parameter detach_fork. * inf-ptrace.c (inf_ptrace_follow_fork): Likewise. * inf-ttrace.c (inf_ttrace_follow_fork): Likewise. * inferior.h (detach_fork): Remove. * infrun.c (detach_fork): Adjust comment and make it static. (follow_fork): Pass detach_fork parameter to target_follow_fork. * linux-nat.c (linux_child_follow_fork): New parameter detach_fork. * target.c (target_follow_fork): New parameter detach_fork. Pass detach_fork as parameter and print its value. * target.h (struct target_ops) : New int parameter. (target_follow_fork): New parameter detach_fork. --- gdb/inf-child.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gdb/inf-child.c') diff --git a/gdb/inf-child.c b/gdb/inf-child.c index f5992bb..1878272 100644 --- a/gdb/inf-child.c +++ b/gdb/inf-child.c @@ -118,7 +118,8 @@ inf_child_post_startup_inferior (ptid_t ptid) } static int -inf_child_follow_fork (struct target_ops *ops, int follow_child) +inf_child_follow_fork (struct target_ops *ops, int follow_child, + int detach_fork) { /* This version of Unix doesn't support following fork or vfork events. */ -- cgit v1.1