diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2009-04-03 20:15:51 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@de.ibm.com> | 2009-04-03 20:15:51 +0000 |
commit | 7fe519cb2170cf7fb9d5d27d181b430c8c9e4f94 (patch) | |
tree | 755f7a419fb6721a3bc331dd11f41f7dcbd0e32d /gdb/gdbserver/server.h | |
parent | 409c383c98cc54cf0e1db3dbdb851d7e13e9c52a (diff) | |
download | gdb-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/server.h')
-rw-r--r-- | gdb/gdbserver/server.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/gdbserver/server.h b/gdb/gdbserver/server.h index 1af5313..7a0b770 100644 --- a/gdb/gdbserver/server.h +++ b/gdb/gdbserver/server.h @@ -201,6 +201,7 @@ struct process_info no current thread selected. */ struct process_info *current_process (void); +struct process_info *get_thread_process (struct thread_info *); #include "regcache.h" #include "gdb/signals.h" |