* inferiors.c (get_first_inferior): Fix buglet.
authorDoug Evans <dje@google.com>
Thu, 20 Feb 2014 19:11:34 +0000 (11:11 -0800)
committerDoug Evans <dje@google.com>
Thu, 20 Feb 2014 19:11:34 +0000 (11:11 -0800)
gdb/gdbserver/ChangeLog
gdb/gdbserver/inferiors.c

index 41052247610f08075078685d43d519e3d9becf26..e80edd2c569e0812048a53a67fbfe0234d2fb4cd 100644 (file)
@@ -1,3 +1,7 @@
+2014-02-20  Doug Evans  <dje@google.com>
+
+       * inferiors.c (get_first_inferior): Fix buglet.
+
 2014-02-19  Doug Evans  <dje@google.com>
 
        * gdbthread.h (add_thread): Change result type to struct thread_info *.
index f83ee22b61358cd44d6d97f5566f69688955c6d0..8c1375f6a369a5574616568d5cb726b426a9e8c3 100644 (file)
@@ -178,8 +178,8 @@ remove_thread (struct thread_info *thread)
 struct inferior_list_entry *
 get_first_inferior (struct inferior_list *list)
 {
-  if (all_threads.head != NULL)
-    return all_threads.head;
+  if (list->head != NULL)
+    return list->head;
   return NULL;
 }