diff options
author | Doug Evans <dje@google.com> | 2014-02-20 11:11:34 -0800 |
---|---|---|
committer | Doug Evans <dje@google.com> | 2014-02-20 11:11:34 -0800 |
commit | 3b8361aa0f6b4d9b3df3c59d23e574cd5f150d8c (patch) | |
tree | d39fe19f3a42b06024f17534d9cfff363989ffec | |
parent | 83deb43f87f098f7858db8643786301eb73875f7 (diff) | |
download | gdb-3b8361aa0f6b4d9b3df3c59d23e574cd5f150d8c.zip gdb-3b8361aa0f6b4d9b3df3c59d23e574cd5f150d8c.tar.gz gdb-3b8361aa0f6b4d9b3df3c59d23e574cd5f150d8c.tar.bz2 |
* inferiors.c (get_first_inferior): Fix buglet.
-rw-r--r-- | gdb/gdbserver/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/gdbserver/inferiors.c | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index 4105224..e80edd2 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -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 *. 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; } |