* 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.
This commit is contained in:
parent
3bec276888
commit
07107ca6f9
9 changed files with 41 additions and 18 deletions
|
@ -440,7 +440,7 @@ struct target_ops
|
|||
int (*to_remove_fork_catchpoint) (int);
|
||||
int (*to_insert_vfork_catchpoint) (int);
|
||||
int (*to_remove_vfork_catchpoint) (int);
|
||||
int (*to_follow_fork) (struct target_ops *, int);
|
||||
int (*to_follow_fork) (struct target_ops *, int, int);
|
||||
int (*to_insert_exec_catchpoint) (int);
|
||||
int (*to_remove_exec_catchpoint) (int);
|
||||
int (*to_set_syscall_catchpoint) (int, int, int, int, int *);
|
||||
|
@ -1235,7 +1235,7 @@ void target_create_inferior (char *exec_file, char *args,
|
|||
This function returns 1 if the inferior should not be resumed
|
||||
(i.e. there is another event pending). */
|
||||
|
||||
int target_follow_fork (int follow_child);
|
||||
int target_follow_fork (int follow_child, int detach_fork);
|
||||
|
||||
/* On some targets, we can catch an inferior exec event when it
|
||||
occurs. These functions insert/remove an already-created
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue