diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2012-07-07 12:11:31 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2012-07-07 12:11:31 +0000 |
commit | 889003ed52d067a971c7e1ed8e0968d91264d273 (patch) | |
tree | c8a32dafb2cd43b77695c91faf742cd9dfce2651 /gdb | |
parent | 32f11bad17497e06191afd582159c588fb38d21f (diff) | |
download | gdb-889003ed52d067a971c7e1ed8e0968d91264d273.zip gdb-889003ed52d067a971c7e1ed8e0968d91264d273.tar.gz gdb-889003ed52d067a971c7e1ed8e0968d91264d273.tar.bz2 |
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')
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/linux-thread-db.c | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index fd6b7e8..4ebefcc 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com> + + * 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 <jan.kratochvil@redhat.com> * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO diff --git a/gdb/linux-thread-db.c b/gdb/linux-thread-db.c index 7f8f83e..bdf14df 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 " |