]> Git Repo - binutils.git/commitdiff
gdb/
authorJan Kratochvil <[email protected]>
Sat, 7 Jul 2012 12:11:31 +0000 (12:11 +0000)
committerJan Kratochvil <[email protected]>
Sat, 7 Jul 2012 12:11:31 +0000 (12:11 +0000)
* linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
nptl <2.7 bug workaround for core files.

gdb/ChangeLog
gdb/linux-thread-db.c

index fd6b7e80a9b06e8412439c1a0fef5dc240c45015..4ebefcc301a8b1e2633fb0316dc5c5f4f8ab2561 100644 (file)
@@ -1,3 +1,8 @@
+2012-07-07  Jan Kratochvil  <[email protected]>
+
+       * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
+       nptl <2.7 bug workaround for core files.
+
 2012-07-06  Jan Kratochvil  <[email protected]>
 
        * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
 2012-07-06  Jan Kratochvil  <[email protected]>
 
        * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
index 7f8f83e79eabf22e99229957607b7b8a19543260..bdf14dfeb437e37cc25cbe50e8dac74d3ec28a63 100644 (file)
@@ -700,9 +700,10 @@ thread_db_find_new_threads_silently (ptid_t ptid)
         If the nptl bug is present in the inferior return 0 to silently ignore
         such errors, and let gdb enumerate threads again later.  In such case
         GDB cannot properly display LWPs if the inferior thread list is
         If the nptl bug is present in the inferior return 0 to silently ignore
         such errors, and let gdb enumerate threads again later.  In such case
         GDB cannot properly display LWPs if the inferior thread list is
-        corrupted.  */
+        corrupted.  For core files it does not apply, no 'later enumeration'
+        is possible.  */
 
 
-      if (!inferior_has_bug ("nptl_version", 2, 7))
+      if (!target_has_execution || !inferior_has_bug ("nptl_version", 2, 7))
        {
          exception_fprintf (gdb_stderr, except,
                             _("Warning: couldn't activate thread debugging "
        {
          exception_fprintf (gdb_stderr, except,
                             _("Warning: couldn't activate thread debugging "
This page took 0.041751 seconds and 4 git commands to generate.