From: Doug Evans Date: Tue, 10 May 2011 18:45:22 +0000 (+0000) Subject: * linux-thread-db.c: Whitespace cleanup. X-Git-Tag: sid-snapshot-20110601~246 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2471d0083c54a1474b907a1cc3637baa93d12eb7;p=thirdparty%2Fbinutils-gdb.git * linux-thread-db.c: Whitespace cleanup. (try_thread_db_load_1): Fix comment. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 4cf559c27c7..30c4078a9ed 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 42035181524..43dda486515 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. */