On Thu, Oct 15, 2009 at 12:10 PM, Paul Pluzhnikov wrote: > Here is a proposed fix for gdb/10757: > http://sourceware.org/bugzilla/show_bug.cgi?id=10757 This failed to compile with GCC 4.4 ('err' may be used uninitialized). Here is an updated patch. Thanks, -- Paul Pluzhnikov 2009-10-17 Paul Pluzhnikov PR gdb/10757 * linux-thread-db.c (attach_thread): Return success/failure indicator. (thread_db_find_new_threads_silently): Retry until no new threads. (struct callback_data): New. (find_new_threads_callback): Count new threads, stop iteration on error. (find_new_threads_once): New function. (thread_db_find_new_threads_2): Rename from thread_db_find_new_threads_1 and adjust. (thread_db_find_new_threads_1): New function.