diff options
author | Paul Pluzhnikov <ppluzhnikov@google.com> | 2009-05-15 16:53:45 +0000 |
---|---|---|
committer | Paul Pluzhnikov <ppluzhnikov@google.com> | 2009-05-15 16:53:45 +0000 |
commit | 17a37d488c16b07d3a1f069ef727e2e53c622722 (patch) | |
tree | 7caff201046bdcd0eeecbc877162c49dfd64dc8a /gdb/gdb_thread_db.h | |
parent | d127ecce68b9052033148696008a8a905f661301 (diff) | |
download | gdb-17a37d488c16b07d3a1f069ef727e2e53c622722.zip gdb-17a37d488c16b07d3a1f069ef727e2e53c622722.tar.gz gdb-17a37d488c16b07d3a1f069ef727e2e53c622722.tar.bz2 |
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/gdb_thread_db.h')
-rw-r--r-- | gdb/gdb_thread_db.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gdb/gdb_thread_db.h b/gdb/gdb_thread_db.h index a5f2477..1cc5fda 100644 --- a/gdb/gdb_thread_db.h +++ b/gdb/gdb_thread_db.h @@ -1,5 +1,14 @@ #ifdef HAVE_THREAD_DB_H #include <thread_db.h> + +#ifndef LIBTHREAD_DB_SO +#define LIBTHREAD_DB_SO "libthread_db.so.1" +#endif + +#ifndef LIBTHREAD_DB_SEARCH_PATH +#define LIBTHREAD_DB_SEARCH_PATH "" +#endif + #else /* Copyright (C) 1999, 2000, 2007, 2008, 2009 Free Software Foundation, Inc. |