2009-10-27 Paul Pluzhnikov <ppluzhnikov@google.com>
authorPaul Pluzhnikov <ppluzhnikov@google.com>
Tue, 27 Oct 2009 21:32:49 +0000 (21:32 +0000)
committerPaul Pluzhnikov <ppluzhnikov@google.com>
Tue, 27 Oct 2009 21:32:49 +0000 (21:32 +0000)
commit02c6c942911107c73a282455160cdd325a397a17
tree6362cf1754d45efcc1284ffbf534a888a77a5842
parent14ff22352f53da430adbc3455b54f113af3bf849
2009-10-27  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.
gdb/ChangeLog
gdb/linux-thread-db.c