From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 129556 invoked by alias); 17 Oct 2019 01:07:53 -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 129546 invoked by uid 89); 17 Oct 2019 01:07:52 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham version=3.3.1 spammy= X-HELO: us-smtp-1.mimecast.com Received: from us-smtp-delivery-1.mimecast.com (HELO us-smtp-1.mimecast.com) (205.139.110.120) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 17 Oct 2019 01:07:51 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1571274470; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=QoMgOBEV7ckgMoAXVNtalBhUYpM3qX2tzCEULb5Db1c=; b=iVQ1qB+g+PcClJ2ojTVXlBR231R97XfyLh8DgSqKxGAOAC/GUy+lCfzIGWT/r1O15YuG0T eX9KgBFZSfJIyis2l+R9yyk4AHqYzolYlUMz35r/iwBrU4ZwrO5gTJPTWCOSq8inyc5Fc4 2sPB0XJTbiL85tFurn8Ye6BxgQDW12k= Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-64-vduOjktGPn6QMiZa33z8qw-1; Wed, 16 Oct 2019 21:07:48 -0400 Received: by mail-wm1-f70.google.com with SMTP id m6so340756wmf.2 for ; Wed, 16 Oct 2019 18:07:47 -0700 (PDT) Return-Path: Received: from ?IPv6:2001:8a0:f913:f700:56ee:75ff:fe8d:232b? ([2001:8a0:f913:f700:56ee:75ff:fe8d:232b]) by smtp.gmail.com with ESMTPSA id o70sm754189wme.29.2019.10.16.18.07.45 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 16 Oct 2019 18:07:45 -0700 (PDT) Subject: Re: [PATCH 08/23] Introduce switch_to_inferior_no_thread To: Tom Tromey References: <20190906232807.6191-1-palves@redhat.com> <20190906232807.6191-9-palves@redhat.com> <87zhjd8g67.fsf@tromey.com> Cc: gdb-patches@sourceware.org From: Pedro Alves Message-ID: Date: Thu, 17 Oct 2019 01:07:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <87zhjd8g67.fsf@tromey.com> X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-SW-Source: 2019-10/txt/msg00538.txt.bz2 On 9/9/19 7:42 PM, Tom Tromey wrote: >>>>>> "Pedro" =3D=3D Pedro Alves writes: >=20 > Pedro> Several places want to switch context to an inferior and its pspac= e, > Pedro> while at the same time switch to "no thread selected". This commit > Pedro> adds a function that does that, and uses it in a few places. The > Pedro> function is made extern because many more uses will be added in fo= llow > Pedro> up commits. >=20 > mi-main.c:run_one_inferior could also be converted. Indeed, I did that. Thanks, Pedro Alves