From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 115816 invoked by alias); 4 Oct 2018 19:16:42 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 115797 invoked by uid 89); 4 Oct 2018 19:16:41 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-26.9 required=5.0 tests=BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=baldwin, Baldwin, UD:bsd-kvm.c, BSDrelated X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 04 Oct 2018 19:16:40 +0000 Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.25]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 11556308FB8A; Thu, 4 Oct 2018 19:16:39 +0000 (UTC) Received: from [127.0.0.1] (ovpn04.gateway.prod.ext.ams2.redhat.com [10.39.146.4]) by smtp.corp.redhat.com (Postfix) with ESMTP id 51E012010D67; Thu, 4 Oct 2018 19:16:38 +0000 (UTC) Subject: Re: [PATCH 3/3] Per-inferior thread list, thread ranges/iterators, down with ALL_THREADS, etc. To: John Baldwin , 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: Pedro Alves Message-ID: <40fdd89a-d268-a788-ee56-ec21e39ff10b@redhat.com> Date: Thu, 04 Oct 2018 19:16:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-SW-Source: 2018-10/txt/msg00113.txt.bz2 On 10/03/2018 06:34 PM, John Baldwin wrote: > 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" > Thanks! I've merged it into the patch, and force-pushed the update to the branch. Thanks, Pedro Alves