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-ptrace.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-ptrace.c')
-rw-r--r-- | gdb/inf-ptrace.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/inf-ptrace.c b/gdb/inf-ptrace.c index 046e0ce9668..9e6e98058b8 100644 --- a/gdb/inf-ptrace.c +++ b/gdb/inf-ptrace.c @@ -40,7 +40,8 @@ #ifdef PT_GET_PROCESS_STATE static int -inf_ptrace_follow_fork (struct target_ops *ops, int follow_child) +inf_ptrace_follow_fork (struct target_ops *ops, int follow_child, + int detach_fork) { pid_t pid, fpid; ptrace_state_t pe; |