* inferiors.c (get_thread_process): Make global.
authorUlrich Weigand <uweigand@de.ibm.com>
Fri, 3 Apr 2009 20:15:51 +0000 (20:15 +0000)
committerUlrich Weigand <uweigand@de.ibm.com>
Fri, 3 Apr 2009 20:15:51 +0000 (20:15 +0000)
commit7fe519cb2170cf7fb9d5d27d181b430c8c9e4f94
tree755f7a419fb6721a3bc331dd11f41f7dcbd0e32d
parent409c383c98cc54cf0e1db3dbdb851d7e13e9c52a
* inferiors.c (get_thread_process): Make global.
* server.h (get_thread_process): Add prototype.
* thread-db.c (find_one_thread): Use get_thread_process
instead of current_process.
(thread_db_get_tls_address): Do not crash if called when
thread layer is not yet initialized.
gdb/gdbserver/ChangeLog
gdb/gdbserver/inferiors.c
gdb/gdbserver/server.h
gdb/gdbserver/thread-db.c