From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id VFKuNzFwU2EyDgAAWB0awg (envelope-from ) for ; Tue, 28 Sep 2021 15:42:41 -0400 Received: by simark.ca (Postfix, from userid 112) id D798F1EE25; Tue, 28 Sep 2021 15:42:41 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-1.6 required=5.0 tests=MAILING_LIST_MULTI, NICE_REPLY_A,RDNS_DYNAMIC autolearn=unavailable autolearn_force=no version=3.4.2 Received: from sourceware.org (ip-8-43-85-97.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 8B1AD1EDDB for ; Tue, 28 Sep 2021 15:42:41 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id E26893857C60 for ; Tue, 28 Sep 2021 19:42:40 +0000 (GMT) Received: from mail-wr1-f43.google.com (mail-wr1-f43.google.com [209.85.221.43]) by sourceware.org (Postfix) with ESMTPS id 3D0A7385800B for ; Tue, 28 Sep 2021 19:35:11 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 3D0A7385800B Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=palves.net Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-wr1-f43.google.com with SMTP id d6so223094wrc.11 for ; Tue, 28 Sep 2021 12:35:11 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:from:to:references:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=YoMVmg3GHKXgYxIPFcbqAf+ECU78dRLKxPA3f3OxKXw=; b=0oDc+EGvKvn78OvBb4Ux9Vm2vatwo4IHFuVNAVFBepb8gS0/auMfQDFnEhYiF3uwlA ZSBbvMFj7aqqDVp38vf6lQFUb6mqboSlxdurWJjNXOsxtPdLDz2DCXGmeEDYWqhUc0A0 iMYqTY6N45heZ1SZQHQ82iI6uyHyGRrNPTDIxH+1B5Ng4HEelT+J6DOH9+KwRXG4n/zI sLPKUmpVH5v7HeCSZYJnWr1iSby5jjcIe6AYYKdrGi6BddXrtDwIBpLvCTDsazrJo1a8 KEPiAavogZdcp27vIG2sxljgycjtCixnp/upDAHz173Slkf+YMxiXwdUMWUXndcH4Vj0 bVfw== X-Gm-Message-State: AOAM5336McwzkaV8e3d+OsNjQyn/rgbUBDZBQq4YWkb75a2MbRmRLIEc eiqqPgW+EFQBtk4F7kCEa9wsMP9sWHY= X-Google-Smtp-Source: ABdhPJwyAz6WtC0qL3EXGXgNJMqr3T7IsQC87kj+U8rbP8WJz/uXgFhFjAoABIzkKKgrJK3PjYbijQ== X-Received: by 2002:a5d:5989:: with SMTP id n9mr2226421wri.89.1632857709670; Tue, 28 Sep 2021 12:35:09 -0700 (PDT) Received: from ?IPv6:2001:8a0:f932:6a00:46bc:d03b:7b3a:2227? ([2001:8a0:f932:6a00:46bc:d03b:7b3a:2227]) by smtp.gmail.com with ESMTPSA id b2sm17014wrs.97.2021.09.28.12.35.08 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 28 Sep 2021 12:35:08 -0700 (PDT) Subject: Re: [PATCH 6/6] gdb: don't share aspace/pspace on fork with "detach-on-fork on" and "follow-fork-mode child" From: Pedro Alves To: Simon Marchi , Tom de Vries , Simon Marchi , John Baldwin , gdb-patches@sourceware.org References: <20210910205402.3853607-1-simon.marchi@efficios.com> <20210910205402.3853607-6-simon.marchi@efficios.com> <021ba846-e43e-e6ef-c827-7e2b8ff8f5e9@FreeBSD.org> <58ca5b53-9d70-b8e7-e4c9-86b9f080f731@polymtl.ca> <41efe1d2-64fe-b0d1-029f-363bfc567bf5@polymtl.ca> <190e87c1-2680-eb73-3817-0106c8f34ece@palves.net> Message-ID: Date: Tue, 28 Sep 2021 20:35:07 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 MIME-Version: 1.0 In-Reply-To: <190e87c1-2680-eb73-3817-0106c8f34ece@palves.net> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit 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: , Errors-To: gdb-patches-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb-patches" On 2021-09-28 8:31 p.m., Pedro Alves wrote: > set loc1_inf1 "$bpnum\\.1 $any inf 1\r\n$bpnum\\.2 $any inf 1" > set loc1_inf2 "$bpnum\\.1 $any inf 1\r\n$bpnum\\.2 $any inf 2" > > set loc2_inf1 "$bpnum\\.2 $any inf 1\r\n$bpnum\\.2 $any inf 1" > set loc2_inf2 "$bpnum\\.2 $any inf 1\r\n$bpnum\\.2 $any inf 2" > > gdb_test "info breakpoints $bpnum" \ > "($loc1_inf1\r\n$loc2_inf2|$loc1_inf2\r\n$loc2_inf1)" \ > "info breakpoints" I meant instead: set loc1_inf1 "$bpnum\\.1 $any inf 1" set loc1_inf2 "$bpnum\\.1 $any inf 2" set loc2_inf1 "$bpnum\\.2 $any inf 1" set loc2_inf2 "$bpnum\\.2 $any inf 2" gdb_test "info breakpoints $bpnum" \ "($loc1_inf1\r\n$loc2_inf2|$loc1_inf2\r\n$loc2_inf1)" \ "info breakpoints"