This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] Fix for PR gdb/10757


On Thu, Oct 15, 2009 at 12:10 PM, Paul Pluzhnikov
<ppluzhnikov@google.com> 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  <ppluzhnikov@google.com>

       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.

Attachment: gdb-pr10757-20091017.txt
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]