delete thread_id_to_gdb_id, unused
authorDoug Evans <dje@google.com>
Thu, 16 Jan 2014 00:35:37 +0000 (16:35 -0800)
committerDoug Evans <dje@google.com>
Thu, 16 Jan 2014 00:35:37 +0000 (16:35 -0800)
* inferiors.c (thread_id_to_gdb_id): Delete.
* inferiors.h (thread_id_to_gdb_id): Delete.

gdb/gdbserver/ChangeLog
gdb/gdbserver/inferiors.c
gdb/gdbserver/inferiors.h

index 9ad71ba315c8c22cd7cdbdea70a2c3a1c22b958c..7347f08142d45d549fc8856977a0228cf64dc466 100644 (file)
@@ -1,3 +1,8 @@
+2014-01-15  Doug Evans  <dje@google.com>
+
+       * inferiors.c (thread_id_to_gdb_id): Delete.
+       * inferiors.h (thread_id_to_gdb_id): Delete.
+
 2014-01-13  Eli Zaretskii  <eliz@gnu.org>
 
        * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
index 3325eb3e841d40882ba1fafd47a9a2588f4d7602..00339588f8b85a9cf00cf7706442b03863d83164 100644 (file)
@@ -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)
 {
index 25314d0865aba4083883d31314c77b8b7cdc32f1..5f99fbc1f1543cf4e4c4ff825c1f6a2deecdc1e5 100644 (file)
@@ -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);
 
This page took 0.043785 seconds and 4 git commands to generate.