summaryrefslogtreecommitdiff
path: root/gdb/solib.h
diff options
context:
space:
mode:
authorPaul Pluzhnikov <ppluzhnikov@google.com>2009-05-15 16:53:41 +0000
committerPaul Pluzhnikov <ppluzhnikov@google.com>2009-05-15 16:53:41 +0000
commit12d687291644f9e26d9c657f9370cb552d89f2f4 (patch)
treee51498305b2dbedfe1955ce746c7305ffab28dc7 /gdb/solib.h
parent89a5bbc90deab14a393d47db4f70bef50f3ede5c (diff)
downloadgdb-12d687291644f9e26d9c657f9370cb552d89f2f4.tar.gz
2009-05-15 Paul Pluzhnikov <ppluzhnikov@google.com>
* NEWS: Mention set/show libthread-db-search-path. * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): New define. (LIBTHREAD_DB_SO): Moved from linux-thread-db.c * linux-thread-db.c (libthread_db_search_path): New setting. (thread_db_handle): New variable (replaces using_thread_db). (try_thread_db_load_1): New function. (try_thread_db_load, thread_db_load_search): Likewise. (dladdr_to_soname): Likewise. (thread_db_load): Iterate over possibly multiple libthread_db's. (check_for_thread_db): Attempt to load new libthread_db. (thread_db_detach, thread_db_wait): Unload libthread_db. (thread_db_mourn_inferior): Likewise. (_initialize_thread_db): Add new libthread-db-search-path option. Defer loading of libthread_db to check_for_thread_db. * solib.c (libpthread_name_p): New function. (libpthread_solib_p): Call it. * solib.h (libpthread_name_p): New prototype.
Diffstat (limited to 'gdb/solib.h')
-rw-r--r--gdb/solib.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/solib.h b/gdb/solib.h
index b4b770e2ac3..ccc5b6358b0 100644
--- a/gdb/solib.h
+++ b/gdb/solib.h
@@ -65,4 +65,8 @@ extern void no_shared_libraries (char *ignored, int from_tty);
extern void set_solib_ops (struct gdbarch *gdbarch,
struct target_so_ops *new_ops);
+/* Return non-zero if NAME is the libpthread shared library. */
+
+extern int libpthread_name_p (const char *name);
+
#endif /* SOLIB_H */