From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=simark.ca Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=simark.ca 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=simark.ca; s=mail; t=1673972577; bh=FwmXPOsSubkUcKj7qjIZNjREolKl3zscRG6Eae0U3Q8=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=LFfgdGS5OK4gjR/hiFWwxjyZRra0w7/ZcatiSz+CVYy5zV86srSjhE8ESabKZCR+x tJGE+frSqjOHDF999EQzgPf+PB+OqbOcGpXup3IhQmk+KTXiGnTmyan1UgRR2nEyKA WOwI+JtReyZWg9QfVDF54NmIQ0hvE7AnaoVEdfMc= 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 From: Simon Marchi In-Reply-To: <87bkmx2kwf.fsf@tromey.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.0 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_PASS,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: 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