diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 4cf559c27c..30c4078a9e 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,8 @@ 2011-05-10 Doug Evans + * linux-thread-db.c: Whitespace cleanup. + (try_thread_db_load_1): Fix comment. + * linux-thread-db.c (set_libthread_db_search_path): New function. (_initialize_thread_db): Add setter for libthread-db-search-path. diff --git a/gdb/linux-thread-db.c b/gdb/linux-thread-db.c index 4203518152..43dda48651 100644 --- a/gdb/linux-thread-db.c +++ b/gdb/linux-thread-db.c @@ -97,7 +97,6 @@ show_libthread_db_debug (struct ui_file *file, int from_tty, fprintf_filtered (file, _("libthread-db debugging is %s.\n"), value); } - /* If we're running on GNU/Linux, we must explicitly attach to any new threads. */ @@ -650,7 +649,7 @@ dladdr_to_soname (const void *addr) return NULL; } -/* Attempt to initialize dlopen()ed libthread_db, described by HANDLE. +/* Attempt to initialize dlopen()ed libthread_db, described by INFO. Return 1 on success. Failure could happen if libthread_db does not have symbols we expect, or when it refuses to work with the current inferior (e.g. due to @@ -813,7 +812,6 @@ try_thread_db_load (const char *library) return 0; } - /* Search libthread_db_search_path for libthread_db which "agrees" to work on current inferior. */