From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id eDUCD3bLxmOxzBgAWB0awg (envelope-from ) for ; Tue, 17 Jan 2023 11:23:18 -0500 Received: by simark.ca (Postfix, from userid 112) id 3B44B1E128; Tue, 17 Jan 2023 11:23:18 -0500 (EST) Authentication-Results: simark.ca; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=iZFSOQ7r; dkim-atps=neutral X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-5.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,NICE_REPLY_A, RCVD_IN_DNSWL_MED,RDNS_DYNAMIC,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 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 E64E31E0D3 for ; Tue, 17 Jan 2023 11:23:17 -0500 (EST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 25182385842C for ; Tue, 17 Jan 2023 16:23:17 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 25182385842C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1673972597; bh=SujNExRTOzN3aOfrkoQkhSirdGXoJJpMsyNvFkNhSsk=; h=Date:Subject:To:Cc:References:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=iZFSOQ7roKiTKMnh3kKHNbJ0IC3U+gl0e9aLkrG5YgVmJrTrcfpeYjkgzydDV156t LVy/XZdNNp0RCCbyv9aoINf3tioUStkgOMkUEu9JqiwYvWKObI1/kDGqQc0ABKfOOm 1lw0JTYuwtklBJv1OH5y9/MxL2qS6Z2ylfQKOeWI= Received: from simark.ca (simark.ca [158.69.221.121]) by sourceware.org (Postfix) with ESMTPS id 5CF9A3858D28 for ; Tue, 17 Jan 2023 16:22:58 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 5CF9A3858D28 Received: from [172.16.0.64] (192-222-180-24.qc.cable.ebox.net [192.222.180.24]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPSA id 3655A1E0D3; Tue, 17 Jan 2023 11:22:57 -0500 (EST) Message-ID: Date: Tue, 17 Jan 2023 11:22:56 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Subject: Re: [PATCH] Handle SIGSEGV in gdb selftests To: Tom Tromey Cc: tdevries , gdb-patches@sourceware.org References: <20221215211442.2515108-1-tromey@adacore.com> <7fca4280-a259-9785-fdd1-ac802b886804@suse.de> <87pmcjba6j.fsf@tromey.com> <375589413f851bebcc3b1256273ab784@suse.de> <94f1db30-8514-3bed-3539-142ac2690187@simark.ca> <87bkmx2kwf.fsf@tromey.com> Content-Language: fr In-Reply-To: <87bkmx2kwf.fsf@tromey.com> Content-Type: text/plain; charset=UTF-8 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: , From: Simon Marchi via Gdb-patches Reply-To: Simon Marchi Errors-To: gdb-patches-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb-patches" On 1/17/23 11:20, Tom Tromey wrote: >>>>>> "Simon" == Simon Marchi writes: > >>> Shouldn't the SIGSEGV -re be before the `-i $inferior_spawn_id`? >>> Otherwise we expect the "received signal SIGSEGV" message to come from >>> the debugged GDB, when it's the top GDB that will print it (like when >>> debugging any other test program). >>> >>> I think we don't see the problem when testing with native because >>> the top and bottom GDBs share the same spawn id. > > Makes sense to me. > > Simon> Here's a patch to fix it, with a commit message. > > Looks good to me. > > Tom Thanks, pushed. Simon