From patchwork Wed Oct 3 17:34:29 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Baldwin X-Patchwork-Id: 29632 Received: (qmail 70125 invoked by alias); 3 Oct 2018 17:34:35 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 70109 invoked by uid 89); 3 Oct 2018 17:34:34 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-23.5 required=5.0 tests=AWL, BAYES_20, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, SPF_HELO_PASS, SPF_SOFTFAIL autolearn=ham version=3.3.2 spammy=UD:bsd-kvm.c, BSDrelated, BSD-related, bsdkvmc X-HELO: mail.baldwin.cx Received: from bigwig.baldwin.cx (HELO mail.baldwin.cx) (96.47.65.170) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 03 Oct 2018 17:34:33 +0000 Received: from John-Baldwins-MacBook-Pro-2.local (ralph.baldwin.cx [66.234.199.215]) by mail.baldwin.cx (Postfix) with ESMTPSA id 6CE3610AFCD; Wed, 3 Oct 2018 13:34:31 -0400 (EDT) Subject: Re: [PATCH 3/3] Per-inferior thread list, thread ranges/iterators, down with ALL_THREADS, etc. To: Pedro Alves , gdb-patches@sourceware.org References: <20181001103252.5150-1-palves@redhat.com> <20181001103252.5150-4-palves@redhat.com> <1efaf61e-026c-1d90-2d62-369e7ebeae6b@redhat.com> From: John Baldwin Message-ID: Date: Wed, 3 Oct 2018 10:34:29 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <1efaf61e-026c-1d90-2d62-369e7ebeae6b@redhat.com> X-IsSubscribed: yes On 10/2/18 6:21 AM, Pedro Alves wrote: > On 10/01/2018 05:33 PM, John Baldwin wrote: >> On 10/1/18 3:32 AM, Pedro Alves wrote: >>> As preparation for multi-target, this patch makes each inferior have >>> its own thread list. >> >> The BSD-related bits all look fine to me. Do you have an existing branch >> for this on github that I can pull down to do some simple run-time testing? > > I've pushed it now to users/palves/per-inf-thread-list on sourceware.org. I needed the following patch as a build fix, but it passed some simple testing of the native target: diff --git a/gdb/bsd-kvm.c b/gdb/bsd-kvm.c index 078cd30c05..991b87852d 100644 --- a/gdb/bsd-kvm.c +++ b/gdb/bsd-kvm.c @@ -25,7 +25,8 @@ #include "regcache.h" #include "target.h" #include "value.h" -#include "gdbcore.h" /* for get_exec_file */ +#include "gdbcore.h" +#include "inferior.h" /* for get_exec_file */ #include "gdbthread.h" #include