OSDN Git Service

* linux-thread-db.c (thread_db_new_objfile): Only try to load
authordevans <devans>
Tue, 11 Oct 2011 03:31:57 +0000 (03:31 +0000)
committerdevans <devans>
Tue, 11 Oct 2011 03:31:57 +0000 (03:31 +0000)
commit2f4980962c13be7e9c7b269560cd0465324ecaae
tree8cef0ea82c2c0381bafe5c769e63fd75f0cdd813
parent834ae85ab5247a688642bf141eba064610659ccf
* linux-thread-db.c (thread_db_new_objfile): Only try to load
libthread_db when we load libpthread or the main symbol file.
(thread_db_inferior_created): New function.
(_initialize_thread_db): Attach inferior_created observer.
* linux-nat.c (linux_child_post_attach): Remove call to
check_for_thread_db.
(linux_child_post_startup_inferior): Ditto.
* objfiles.h (OBJF_MAINLINE): Define.
* symfile.c (symbol_file_add_with_addrs_or_offsets): Pass it to
allocate_objfile when appropriate.
gdb/ChangeLog
gdb/linux-nat.c
gdb/linux-thread-db.c
gdb/objfiles.h
gdb/symfile.c