diff options
author | Luis Machado <luisgpm@br.ibm.com> | 2013-09-03 17:22:44 +0000 |
---|---|---|
committer | Luis Machado <luisgpm@br.ibm.com> | 2013-09-03 17:22:44 +0000 |
commit | 36a31ec983a162960eb0c14d1054f8cb95a5db87 (patch) | |
tree | fbb07ee5aa17dc2b3550c96ad6bd8fd8f0051b05 /gdb/inf-ttrace.c | |
parent | 365ca53d7124553b08c9ff6d1120f06e42c1f552 (diff) | |
download | gdb-36a31ec983a162960eb0c14d1054f8cb95a5db87.tar.gz |
* 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) <to_follow_fork>: New int
parameter.
(target_follow_fork): New parameter detach_fork.
Diffstat (limited to 'gdb/inf-ttrace.c')
-rw-r--r-- | gdb/inf-ttrace.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/inf-ttrace.c b/gdb/inf-ttrace.c index 511a67cbcbc..3ba830fa669 100644 --- a/gdb/inf-ttrace.c +++ b/gdb/inf-ttrace.c @@ -409,7 +409,8 @@ inf_ttrace_stopped_by_watchpoint (void) static pid_t inf_ttrace_vfork_ppid = -1; static int -inf_ttrace_follow_fork (struct target_ops *ops, int follow_child) +inf_ttrace_follow_fork (struct target_ops *ops, int follow_child, + int detach_fork) { pid_t pid, fpid; lwpid_t lwpid, flwpid; |