From: Doug Evans Date: Thu, 16 Jan 2014 00:35:37 +0000 (-0800) Subject: delete thread_id_to_gdb_id, unused X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ab7f45ba10d0a1a636a5ce7b4784a1d6ce3e94a3;p=binutils-gdb.git delete thread_id_to_gdb_id, unused * inferiors.c (thread_id_to_gdb_id): Delete. * inferiors.h (thread_id_to_gdb_id): Delete. --- diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index 9ad71ba315c..7347f08142d 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,3 +1,8 @@ +2014-01-15 Doug Evans + + * inferiors.c (thread_id_to_gdb_id): Delete. + * inferiors.h (thread_id_to_gdb_id): Delete. + 2014-01-13 Eli Zaretskii * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from diff --git a/gdb/gdbserver/inferiors.c b/gdb/gdbserver/inferiors.c index 3325eb3e841..00339588f8b 100644 --- a/gdb/gdbserver/inferiors.c +++ b/gdb/gdbserver/inferiors.c @@ -105,21 +105,6 @@ add_thread (ptid_t thread_id, void *target_data) new_thread->target_data = target_data; } -ptid_t -thread_id_to_gdb_id (ptid_t thread_id) -{ - struct inferior_list_entry *inf = all_threads.head; - - while (inf != NULL) - { - if (ptid_equal (inf->id, thread_id)) - return thread_id; - inf = inf->next; - } - - return null_ptid; -} - ptid_t thread_to_gdb_id (struct thread_info *thread) { diff --git a/gdb/gdbserver/inferiors.h b/gdb/gdbserver/inferiors.h index 25314d0865a..5f99fbc1f15 100644 --- a/gdb/gdbserver/inferiors.h +++ b/gdb/gdbserver/inferiors.h @@ -94,7 +94,6 @@ struct process_info *find_process_pid (int pid); int have_started_inferiors_p (void); int have_attached_inferiors_p (void); -ptid_t thread_id_to_gdb_id (ptid_t); ptid_t thread_to_gdb_id (struct thread_info *); ptid_t gdb_id_to_thread_id (ptid_t);