This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH v2 2/3] remove all_lwps from gdbserver: use list api


Doug Evans writes:
 > Hi.
 > This patch provides missing API routines where necessary,
 > and removes all references to list implementation details
 > outside of inferiors.c.

This patch fixes a buglet that was introduced.
Committed.

2014-02-20  Doug Evans  <dje@google.com>

	* inferiors.c (get_first_inferior): Fix buglet.

diff --git a/gdb/gdbserver/inferiors.c b/gdb/gdbserver/inferiors.c
index f83ee22..8c1375f 100644
--- a/gdb/gdbserver/inferiors.c
+++ b/gdb/gdbserver/inferiors.c
@@ -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;
 }
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]