aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver/inferiors.c
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2009-04-03 20:15:51 +0000
committerUlrich Weigand <uweigand@de.ibm.com>2009-04-03 20:15:51 +0000
commit7fe519cb2170cf7fb9d5d27d181b430c8c9e4f94 (patch)
tree755f7a419fb6721a3bc331dd11f41f7dcbd0e32d /gdb/gdbserver/inferiors.c
parent409c383c98cc54cf0e1db3dbdb851d7e13e9c52a (diff)
downloadgdb-7fe519cb2170cf7fb9d5d27d181b430c8c9e4f94.zip
gdb-7fe519cb2170cf7fb9d5d27d181b430c8c9e4f94.tar.gz
gdb-7fe519cb2170cf7fb9d5d27d181b430c8c9e4f94.tar.bz2
* 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.
Diffstat (limited to 'gdb/gdbserver/inferiors.c')
-rw-r--r--gdb/gdbserver/inferiors.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/gdbserver/inferiors.c b/gdb/gdbserver/inferiors.c
index 2d26b6a..f96438e 100644
--- a/gdb/gdbserver/inferiors.c
+++ b/gdb/gdbserver/inferiors.c
@@ -442,7 +442,7 @@ find_process_pid (int pid)
find_inferior_id (&all_processes, pid_to_ptid (pid));
}
-static struct process_info *
+struct process_info *
get_thread_process (struct thread_info *thread)
{
int pid = ptid_get_pid (thread->entry.id);