[RFA] Only try to load libthread_db when we load libpthread.
Pedro Alves
pedro@codesourcery.com
Thu Oct 6 11:22:00 GMT 2011
On Wednesday 05 October 2011 19:27:05, Doug Evans wrote:
> 2011-10-05 Doug Evans <dje@google.com>
>
> * linux-thread-db.c (thread_db_new_objfile): Only try to load
> libthread_db when we load libpthread.
Makes sense to me.
> No regressions in amd64-linux,
> but I can imagine it misses some cases.
Yeah. I think we'll no longer activate thread_db when debugging core
files of static executables (e.g., a core of gdb.threads/staticthreads).
It works with live debugging since we call check_for_thread_db
from linux_child_post_attach/linux_child_post_startup_inferior.
Maybe moving that to an inferior_created observer in
linux-thread-db.c would work.
--
Pedro Alves
More information about the Gdb-patches
mailing list