This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[commit] inferiors.c (thread_id_to_gdb_id): Delete.
- From: Doug Evans <dje at google dot com>
- To: gdb-patches at sourceware dot org
- Date: Wed, 15 Jan 2014 16:37:41 -0800
- Subject: [commit] inferiors.c (thread_id_to_gdb_id): Delete.
- Authentication-results: sourceware.org; auth=none
Hi.
This function is unused, committed.
2014-01-15 Doug Evans <dje@google.com>
* inferiors.c (thread_id_to_gdb_id): Delete.
* inferiors.h (thread_id_to_gdb_id): Delete.
diff --git a/gdb/gdbserver/inferiors.c b/gdb/gdbserver/inferiors.c
index 3325eb3..0033958 100644
--- a/gdb/gdbserver/inferiors.c
+++ b/gdb/gdbserver/inferiors.c
@@ -106,21 +106,6 @@ add_thread (ptid_t thread_id, void *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)
{
return thread->entry.id;
diff --git a/gdb/gdbserver/inferiors.h b/gdb/gdbserver/inferiors.h
index 25314d0..5f99fbc 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);