From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTPS id 236743858C83 for ; Tue, 8 Mar 2022 12:55:59 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 236743858C83 Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-574-6ftotthBN3ypzhprGxVIyA-1; Tue, 08 Mar 2022 07:55:57 -0500 X-MC-Unique: 6ftotthBN3ypzhprGxVIyA-1 Received: by mail-wm1-f70.google.com with SMTP id a26-20020a7bc1da000000b003857205ec7cso1063935wmj.2 for ; Tue, 08 Mar 2022 04:55:57 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=QMdPt3rdnxDm5M/xuk0HJK6q6S6m4KooQe/BAH8KIeU=; b=tXNXxFxDG43sU2Z4lmuKO9N458x/UFvM1w6/31NC12xhrAfFZ8ewc+FE1JHAjmIWBO WRiGaKVaiPraq6aIovWyMf2SHhj1ANZ8c+q6G8I3bwymHo3ftenWOeX8HFQFJ+SWkZcF Jv+OMf/e2hLKVWjv25nnb+tuJ3WofpbwEG7SCErv6y8I1Vn07TSZ6VHxrW9X9l9piOWL 8PBO6CuCSOJX8GQuyvSiqHu0hTOGnq7UBtjCD+lLN1+MtJDGJ9fthJG3Ln7ui5uLprEg mI+j+pNxNfJPsc5eFsndHAUzDjf9ZZxEvBaYo3nc8H6zSGvA8E90EeMzmCehkv/GMkB5 J/lg== X-Gm-Message-State: AOAM531rjLAUsj0DwUTPlHd0pTQ54+tln0GbsPtI2LJAmBqrkdKzvrwz 0pN3nFFugMmGmo3AYToyJRtb/xQdfprhby56K8vaI1Cz1rALfzzReBmkyK8WEGc+51wHfrxLx6d Tuc+TgYChuOZZ9WN3zaaAMQ== X-Received: by 2002:a5d:68d2:0:b0:1f0:653f:108d with SMTP id p18-20020a5d68d2000000b001f0653f108dmr11952166wrw.283.1646744156282; Tue, 08 Mar 2022 04:55:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJw9nUysy2Rgxoa9p9gJtKg09sXNg8QxXt9YpVGAFajYG3MhEjaef9eq4SVrp0c7BA3zj+q9lA== X-Received: by 2002:a5d:68d2:0:b0:1f0:653f:108d with SMTP id p18-20020a5d68d2000000b001f0653f108dmr11952153wrw.283.1646744156114; Tue, 08 Mar 2022 04:55:56 -0800 (PST) Received: from localhost (host86-134-151-205.range86-134.btcentralplus.com. [86.134.151.205]) by smtp.gmail.com with ESMTPSA id w9-20020a5d6089000000b001f0256761b9sm22834009wrt.45.2022.03.08.04.55.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Mar 2022 04:55:55 -0800 (PST) From: Andrew Burgess To: Pedro Alves , Eli Zaretskii Cc: gdb-patches@sourceware.org Subject: Re: [PATCHv2 2/2] gdb/mi: add --no-connection to MI -add-inferior command In-Reply-To: <0002f2a5-b503-ed36-c9af-1b392531863a@palves.net> References: <2d926ccc029733a21d4b1483f89b87739e570b29.1646221667.git.aburgess@redhat.com> <83pmn4jf8w.fsf@gnu.org> <20220303124439.GF1212730@redhat.com> <14aadc99-6621-3aac-daad-66f4838ce074@palves.net> <87r17dwnzi.fsf@redhat.com> <0002f2a5-b503-ed36-c9af-1b392531863a@palves.net> Date: Tue, 08 Mar 2022 12:55:54 +0000 Message-ID: <877d94wqlh.fsf@redhat.com> MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain X-Spam-Status: No, score=-11.8 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H5, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Mar 2022 12:56:00 -0000 Pedro Alves writes: > On 2022-03-07 19:40, Andrew Burgess wrote: >> Pedro Alves writes: >> >>> On 2022-03-03 12:44, Andrew Burgess via Gdb-patches wrote: >>>> +* MI changes >>>> + >>>> + ** The '-add-inferior' command now accepts a '--no-connection' >>>> + option, which causes the new inferior to start without a >>>> + connection. >>> >>> I think this should also say that -add-inferior with no option now inherits >>> the connection of the current inferior, restoring the behavior of GDB xxx. >> >> I added this note, and pushed these two patches. >> > > Hmm, I don't see any change in the pushed version. Forgot to amend the > patch, perhaps? Here's the hunk from the patch I pushed, this is currently in master: diff --git a/gdb/NEWS b/gdb/NEWS index ee9eaad63a0..4e12ebfb0bd 100644 --- a/gdb/NEWS +++ b/gdb/NEWS @@ -152,6 +152,12 @@ info win of the floating-point type, and the "f" is the marker for floating point. +* MI changes + + ** The '-add-inferior' with no option flags now inherits the + connection of the current inferior, this restores the behaviour of + GDB as it was prior to GDB 10. + * New targets GNU/Linux/LoongArch loongarch*-*-linux* I'll follow up with the complete patches. Thanks, Andrew