diff options
author | Yao Qi <yao@codesourcery.com> | 2012-04-19 05:05:11 +0000 |
---|---|---|
committer | Yao Qi <yao@codesourcery.com> | 2012-04-19 05:05:11 +0000 |
commit | 3e10640f3c843093ec9a8e95a9cd5c1b81dc156f (patch) | |
tree | 4aa721c8c7bc312e7227d673b8ca32da0a3e3f6e /gdb/gdbserver/server.c | |
parent | 48fe46695af35dab1aaa2f35bc2b663d0a4eea63 (diff) | |
download | gdb-3e10640f3c843093ec9a8e95a9cd5c1b81dc156f.zip gdb-3e10640f3c843093ec9a8e95a9cd5c1b81dc156f.tar.gz gdb-3e10640f3c843093ec9a8e95a9cd5c1b81dc156f.tar.bz2 |
gdb/gdbserver/
* remote-utils.c (prepare_resume_reply): Replace with macro
target_core_of_thread.
* server.c (handle_qxfer_threads_proper): Likewise.
* target.h (traget_core_of_thread): New macro.
Diffstat (limited to 'gdb/gdbserver/server.c')
-rw-r--r-- | gdb/gdbserver/server.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/gdb/gdbserver/server.c b/gdb/gdbserver/server.c index 9c7159f..23c9d47 100644 --- a/gdb/gdbserver/server.c +++ b/gdb/gdbserver/server.c @@ -1161,14 +1161,11 @@ handle_qxfer_threads_proper (struct buffer *buffer) { ptid_t ptid = thread_to_gdb_id ((struct thread_info *)thread); char ptid_s[100]; - int core = -1; + int core = target_core_of_thread (ptid); char core_s[21]; write_ptid (ptid_s, ptid); - if (the_target->core_of_thread) - core = (*the_target->core_of_thread) (ptid); - if (core != -1) { sprintf (core_s, "%d", core); |