On Thu, Apr 16, 2009 at 10:53 AM, Tom Tromey wrote: > If you want, I think it would make sense to unconditionally print this > message if a search path was specified. Good idea. Fixed. Attached is a revised patch, with updated ChangeLog and documentation changes. Tested on Linux/x86_64 with no regressions. Thanks, -- Paul Pluzhnikov 2009-04-17 Paul Pluzhnikov * 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. doc/ChangeLog 2009-04-17 Paul Pluzhnikov * gdb.texinfo (Threads): Document libthread-db-search-path.