From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id WcO1NRhK819mIQAAWB0awg (envelope-from ) for ; Mon, 04 Jan 2021 12:02:16 -0500 Received: by simark.ca (Postfix, from userid 112) id CEC021F0AA; Mon, 4 Jan 2021 12:02:16 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (server2.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 2230F1E965 for ; Mon, 4 Jan 2021 12:02:16 -0500 (EST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id AB97E3840C2D; Mon, 4 Jan 2021 17:02:15 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AB97E3840C2D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1609779735; bh=wG06iNnlrUtOdNpSa3aYHi/eYhbRWQcx87Q3xSyHHv8=; h=Subject:To:References:Date:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=WjXJuuK1F+OkSKNmDoJRaX0lkZti1d7UDhTqzsyQwZd4BjoIPEkaW8TSbZmyxrCql GASJJX5Wbtu4j7NCKYQBvinIHRdiIhGNaZ9x7GtGVx8xqUYVj7/5fZcI60pFlcngxg x4fHOGbVmwh0LRKX1Mge4hTNZRvkR5FM3CucK2pA= Received: from smtp.polymtl.ca (smtp.polymtl.ca [132.207.4.11]) by sourceware.org (Postfix) with ESMTPS id 70C463850425 for ; Mon, 4 Jan 2021 17:02:13 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 70C463850425 Received: from simark.ca (simark.ca [158.69.221.121]) (authenticated bits=0) by smtp.polymtl.ca (8.14.7/8.14.7) with ESMTP id 104H27cw011802 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 4 Jan 2021 12:02:12 -0500 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp.polymtl.ca 104H27cw011802 Received: from [10.0.0.213] (192-222-157-6.qc.cable.ebox.net [192.222.157.6]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by simark.ca (Postfix) with ESMTPSA id A3C391E965; Mon, 4 Jan 2021 12:02:07 -0500 (EST) Subject: Re: [PATCH v2 3/3] gdb: introduce scoped debug prints To: Simon Marchi , gdb-patches@sourceware.org References: <20201216204737.900975-1-simon.marchi@efficios.com> <20201216204737.900975-3-simon.marchi@efficios.com> Message-ID: <3ad3b11f-8a72-cd1d-a138-59c47300f147@polymtl.ca> Date: Mon, 4 Jan 2021 12:02:07 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Poly-FromMTA: (simark.ca [158.69.221.121]) at Mon, 4 Jan 2021 17:02:07 +0000 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@sourceware.org Sender: "Gdb-patches" > With this patch, gdb.threads/stepi-random-signal.exp becomes flaky. I folded > this little fixup in the patch: > > commit 49c94827cbbe802726f177bc61c6c9d830907ffa > Author: Simon Marchi > Date: Tue Dec 22 16:33:40 2020 -0500 > > fixup > > Change-Id: Ibd2f622df3e76c873fcf82bca7c4c7900654647e > > diff --git a/gdb/testsuite/gdb.threads/stepi-random-signal.exp b/gdb/testsuite/gdb.threads/stepi-random-signal.exp > index 9a8b38c2acf5..689de8fdc632 100644 > --- a/gdb/testsuite/gdb.threads/stepi-random-signal.exp > +++ b/gdb/testsuite/gdb.threads/stepi-random-signal.exp > @@ -86,12 +86,13 @@ if {$prev_addr == ""} { > set seen 0 > > set test "stepi" > -if {[gdb_test_multiple "stepi" "$test" { > +set prompt "$gdb_prompt \\\[infrun\\\] fetch_inferior_event: exit\r\n$" > +if {[gdb_test_multiple "stepi" "$test" -prompt $prompt { > -re {\[infrun\] handle_signal_stop: random signal} { > set seen 1 > exp_continue > } > - -re "$gdb_prompt $" { > + -re "$prompt$" { > } > }] != 0} { > return > > > Simon > I pushed this series, including this fix. Simon