* linux-thread-db.c (thread_db_attach): Delete.
authorDaniel Jacobowitz <drow@false.org>
Wed, 27 Jun 2007 11:52:02 +0000 (11:52 +0000)
committerDaniel Jacobowitz <drow@false.org>
Wed, 27 Jun 2007 11:52:02 +0000 (11:52 +0000)
commit4105de343e714e0096723905ada442f1524776a6
tree36ead3a409ff087a91bf56c5ffb6793ff65e2951
parent58eb693ef13be6d0fb010269bac6942ebf8ab12f
* linux-thread-db.c (thread_db_attach): Delete.
(thread_db_detach): Typo fix.  Call target_mourn_inferior
instead of fixing up proc_handle.
(have_threads_callback, have_threads): New functions.
(thread_db_wait): Remove dead proc_handle.pid check.  Only
translate PTIDs if we have registered threads.  Check for new
threads if we have none.
(thread_db_create_inferior, thread_db_post_startup_inferior): Delete.
(find_new_threads_callback): Only enable event reporting if TID == 0.
(same_ptid_callback): New.
(thread_db_get_thread_local_address): Check for new threads.
(init_thread_db_ops): Don't set to_attach, to_create_inferior,
or to_post_startup_inferior.

* thread-db.c (thread_db_find_new_threads): Add prototype.
(thread_db_create_event): Check for the main thread before adding
a new thread.
(maybe_attach_thread): Only enable event reporting if TID == 0.
(thread_db_get_tls_address): Check for new threads.
gdb/ChangeLog
gdb/gdbserver/ChangeLog
gdb/gdbserver/thread-db.c
gdb/linux-thread-db.c