aboutsummaryrefslogtreecommitdiff
path: root/gdb/linux-nat.c
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2011-10-11 03:31:59 +0000
committerDoug Evans <dje@google.com>2011-10-11 03:31:59 +0000
commit0838fb575ec286250d500871c0a078e6bd25eacc (patch)
treeb6a69b5f042414edf107215fbb04b954362f0f43 /gdb/linux-nat.c
parent0344e8789041c41c4561cfd54c4b04e512983fb4 (diff)
downloadgdb-0838fb575ec286250d500871c0a078e6bd25eacc.zip
gdb-0838fb575ec286250d500871c0a078e6bd25eacc.tar.gz
gdb-0838fb575ec286250d500871c0a078e6bd25eacc.tar.bz2
* 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.
Diffstat (limited to 'gdb/linux-nat.c')
-rw-r--r--gdb/linux-nat.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c
index 0cb4096..411afdc 100644
--- a/gdb/linux-nat.c
+++ b/gdb/linux-nat.c
@@ -571,7 +571,6 @@ static void
linux_child_post_attach (int pid)
{
linux_enable_event_reporting (pid_to_ptid (pid));
- check_for_thread_db ();
linux_enable_tracesysgood (pid_to_ptid (pid));
}
@@ -579,7 +578,6 @@ static void
linux_child_post_startup_inferior (ptid_t ptid)
{
linux_enable_event_reporting (ptid);
- check_for_thread_db ();
linux_enable_tracesysgood (ptid);
}