aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver/inferiors.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@ericsson.com>2017-09-15 18:02:51 +0200
committerSimon Marchi <simon.marchi@ericsson.com>2017-09-15 18:02:51 +0200
commit124aceb46dfd1f836f35d6075ead4e00e705f6f3 (patch)
tree768d8a85c5f426f44ac969495512cf1a99e0cfa5 /gdb/gdbserver/inferiors.c
parent96cde54f0adf2315404f3eba35dc3dfbc57f98c8 (diff)
downloadgdb-124aceb46dfd1f836f35d6075ead4e00e705f6f3.zip
gdb-124aceb46dfd1f836f35d6075ead4e00e705f6f3.tar.gz
gdb-124aceb46dfd1f836f35d6075ead4e00e705f6f3.tar.bz2
gdbserver: Remove thread_to_gdb_id
As explained in the previous patch, the gdb_id concept is no longer relevant. The function thread_to_gdb_id is trivial, it returns the thread's ptid. Remove it and replace its usage with ptid_of. The changes in nto-low.c and lynx-low.c are fairly straightforward, but I was not able to build test them. gdb/gdbserver/ChangeLog: * inferiors.h (thread_to_gdb_id): Remove. * inferiors.c (thread_to_gdb_id): Remove. * server.c (handle_qxfer_threads_worker, handle_query): Adjust. * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers, lynx_store_registers, lynx_read_memory, lynx_write_memory): Likewise. * nto-low.c (nto_fetch_registers, nto_store_registers, nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
Diffstat (limited to 'gdb/gdbserver/inferiors.c')
-rw-r--r--gdb/gdbserver/inferiors.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/gdb/gdbserver/inferiors.c b/gdb/gdbserver/inferiors.c
index 933dd76..72f0412 100644
--- a/gdb/gdbserver/inferiors.c
+++ b/gdb/gdbserver/inferiors.c
@@ -121,12 +121,6 @@ add_thread (ptid_t thread_id, void *target_data)
return new_thread;
}
-ptid_t
-thread_to_gdb_id (struct thread_info *thread)
-{
- return thread->entry.id;
-}
-
/* Wrapper around get_first_inferior to return a struct thread_info *. */
struct thread_info *