summaryrefslogtreecommitdiff
path: root/gdb/linux-fork.h
diff options
context:
space:
mode:
authorPedro Alves <pedro@codesourcery.com>2008-12-28 16:14:56 +0000
committerPedro Alves <pedro@codesourcery.com>2008-12-28 16:14:56 +0000
commit027a0a007cabf6cb23b35c53f5cbc172904d84ba (patch)
tree35afe6599889252fd31d1c81b85944539e873abe /gdb/linux-fork.h
parent43f17405181c357d49d5193f0d16665964e6e5b0 (diff)
downloadgdb-027a0a007cabf6cb23b35c53f5cbc172904d84ba.tar.gz
* linux-fork.c (linux_fork_detach): New.
* linux-fork.h (linux_fork_detach): Declare. * linux-nat.c (linux_child_follow_fork): When following the fork child, add the child inferior before possibly detaching from the parent. Don't reinstall ourselves. (linux_nat_detach): Call linux_fork_detach if there are other forks to debug. * linux-thread-db.c (thread_db_detach): Don't call target_mourn_inferior. Instead inline the necessary bits. * inf-ptrace.c (inf_ptrace_detach): Don't unpush the target if there are other inferiors to debug.
Diffstat (limited to 'gdb/linux-fork.h')
-rw-r--r--gdb/linux-fork.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/linux-fork.h b/gdb/linux-fork.h
index cea1fc9041f..54dc19e6467 100644
--- a/gdb/linux-fork.h
+++ b/gdb/linux-fork.h
@@ -23,6 +23,7 @@ extern struct fork_info *find_fork_pid (pid_t);
extern void fork_save_infrun_state (struct fork_info *, int);
extern void linux_fork_killall (void);
extern void linux_fork_mourn_inferior (void);
+extern void linux_fork_detach (char *, int);
extern int forks_exist_p (void);
struct fork_info *fork_list;