aboutsummaryrefslogtreecommitdiff
path: root/gdb/linux-nat.c
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2008-01-02 13:36:38 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2008-01-02 13:36:38 +0000
commitef29ce1ab3161205aec793706eb411a7b2bdba8b (patch)
tree6096042db0bbe4fcf59d38faf12c50f602d36dea /gdb/linux-nat.c
parent0fafefe31511097c49239948a41d1ceeffc60235 (diff)
downloadgdb-ef29ce1ab3161205aec793706eb411a7b2bdba8b.zip
gdb-ef29ce1ab3161205aec793706eb411a7b2bdba8b.tar.gz
gdb-ef29ce1ab3161205aec793706eb411a7b2bdba8b.tar.bz2
* linux-nat.c (linux_child_follow_fork): Call also CHECK_FOR_THREAD_DB.
* gdb.threads/fork-child-threads.exp, gdb.threads/fork-child-threads.c: New files
Diffstat (limited to 'gdb/linux-nat.c')
-rw-r--r--gdb/linux-nat.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c
index 09f538b..b79e40f 100644
--- a/gdb/linux-nat.c
+++ b/gdb/linux-nat.c
@@ -517,6 +517,7 @@ linux_child_follow_fork (struct target_ops *ops, int follow_child)
push_target (ops);
linux_nat_switch_fork (inferior_ptid);
+ check_for_thread_db ();
/* Reset breakpoints in the child as appropriate. */
follow_inferior_reset_breakpoints ();