Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Doug Evans <dje@google.com>
To: gdb-patches@sourceware.org
Subject: Re: [PATCH v2 2/3] remove all_lwps from gdbserver: use list api
Date: Thu, 20 Feb 2014 21:19:00 -0000	[thread overview]
Message-ID: <21254.29024.423597.260936@ruffy.mtv.corp.google.com> (raw)
In-Reply-To: <yjt2ob2ud5fo.fsf@ruffy.mtv.corp.google.com>

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;
 }
 


      parent reply	other threads:[~2014-02-20 21:19 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-29 18:11 Doug Evans
2014-02-06 12:27 ` Pedro Alves
2014-02-19 23:31   ` Doug Evans
2014-02-20 13:40     ` Pedro Alves
2014-02-20 18:18       ` Doug Evans
2014-02-20 18:27         ` Pedro Alves
2014-02-20 21:18 ` Doug Evans
2014-02-20 21:19 ` Doug Evans [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=21254.29024.423597.260936@ruffy.mtv.corp.google.com \
    --to=dje@google.com \
    --cc=gdb-patches@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox