OSDN Git Service

* linux-fork.c (linux_fork_detach): New.
authorpalves <palves>
Sun, 28 Dec 2008 16:14:56 +0000 (16:14 +0000)
committerpalves <palves>
Sun, 28 Dec 2008 16:14:56 +0000 (16:14 +0000)
commit00f479db16fdea4e5f73d4917561b5a51b7a4eec
tree4bdeabd6a012dcc3a87159ade3880089f08d77d9
parentf8e5d450d1c3a2d0f6c9059435bcb95a7757572c
* 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.
gdb/ChangeLog
gdb/inf-ptrace.c
gdb/linux-fork.c
gdb/linux-fork.h
gdb/linux-nat.c
gdb/linux-thread-db.c