* linux-thread-db.c: Include "linux-nat.h".
[deliverable/binutils-gdb.git] / gdb / linux-nat.c
index 88e0d7d24d990ed2af5a356995460a423a7b98c2..658c984dfdeea017254bc1ed7ef6801b9782ffe2 100644 (file)
@@ -334,12 +334,14 @@ void
 child_post_attach (int pid)
 {
   linux_enable_event_reporting (pid_to_ptid (pid));
+  check_for_thread_db ();
 }
 
 static void
 linux_child_post_startup_inferior (ptid_t ptid)
 {
   linux_enable_event_reporting (ptid);
+  check_for_thread_db ();
 }
 
 int
@@ -963,7 +965,7 @@ lin_lwp_attach_lwp (ptid_t ptid, int verbose)
       gdb_assert (pid == GET_LWP (ptid)
                  && WIFSTOPPED (status) && WSTOPSIG (status));
 
-      child_post_attach (pid);
+      target_post_attach (pid);
 
       lp->stopped = 1;
 
This page took 0.027068 seconds and 4 git commands to generate.