* linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
nptl <2.7 bug workaround for core files.
+
+ * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
+ nptl <2.7 bug workaround for core files.
+
* linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
* linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
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. 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 "