summaryrefslogtreecommitdiff
path: root/gdb/linux-thread-db.c
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2012-07-07 12:11:28 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2012-07-07 12:11:28 +0000
commit9962a1f2e4999e17ae04ba9b115297455c0b839a (patch)
tree18a04350bc2eb6439eb42b1cff07cdcd5d4bf09e /gdb/linux-thread-db.c
parent314bf0714f762954532b3c6069ecf91af85834aa (diff)
downloadgdb-9962a1f2e4999e17ae04ba9b115297455c0b839a.tar.gz
gdb/
* linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply nptl <2.7 bug workaround for core files.
Diffstat (limited to 'gdb/linux-thread-db.c')
-rw-r--r--gdb/linux-thread-db.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/linux-thread-db.c b/gdb/linux-thread-db.c
index 7f8f83e79ea..bdf14dfeb43 100644
--- a/gdb/linux-thread-db.c
+++ b/gdb/linux-thread-db.c
@@ -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
- 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 "