From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id brotJY4lQ2jhggMAWB0awg (envelope-from ) for ; Fri, 06 Jun 2025 13:29:50 -0400 Authentication-Results: simark.ca; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=CNSyDMBp; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 891431E11C; Fri, 6 Jun 2025 13:29:50 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-10.1 required=5.0 tests=ARC_SIGNED,ARC_VALID, BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,RCVD_IN_VALIDITY_CERTIFIED, RCVD_IN_VALIDITY_RPBL,RCVD_IN_VALIDITY_SAFE autolearn=ham autolearn_force=no version=4.0.1 Received: from server2.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 ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 34CA31E0C2 for ; Fri, 6 Jun 2025 13:29:50 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id DF25D3856DEF for ; Fri, 6 Jun 2025 17:29:49 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DF25D3856DEF Authentication-Results: sourceware.org; dkim=pass (1024-bit key, unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=CNSyDMBp Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTP id CF60D3857B84 for ; Fri, 6 Jun 2025 17:29:17 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org CF60D3857B84 Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org CF60D3857B84 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1749230957; cv=none; b=Pocp9Jb7r9arWZbwFg1FvdiFemlvqD7P+ct2ZszhNf5+5DGzIXjSRCcZxiZ00eOQKwvuoNUopESV++f+dJ3RLGA8GNQNNwAGfA+3MC97JTAoCSZCvI7QKEx10Ijhn+AtfjZjRJZiHtJpmBfqmSSpkbm9rcLb7CsfnVBU3q5Lz68= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1749230957; c=relaxed/simple; bh=hJT+v27nCk9I84EZbWR3OEmfp71TzR+48rquIRzrCjo=; h=DKIM-Signature:Date:From:To:Subject:Message-ID:MIME-Version; b=PJ/6L6aPSAZytO+bNia3eIkUcnWiMY2Iwcwn3ayzZMZPf4vGPEK452gMbDcJjpCeWzsdVnLMQ7nAlfGYdYt0R3Rlq8d4pkEeqwE/tRpQWz4tVqxM/lSOsupOauCJxZ9XzT9Ra828pOz96wC2cc7vyN4/ySE692HX73iJAsgjf9U= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CF60D3857B84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1749230957; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=vRmc78vzQW5H5KOO4+P5/8HRogU2zqd/Z+1aUrDFDRA=; b=CNSyDMBpmOLf1W1Cx3iGuLuDk6BaBenr0Ckfju9skNgIPTVibANtVE+5P2vw7wNpUi7vML wetpeaiYcutjqhzWx6RWiEhUfuhnl49o0A5gk8qJq8lcuvYXoN8XfExZq+Z3ItxY3EgClk L8aFqnStMC4W3hHnNbftmvkuDoLNM94= Received: from mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-583-WxiPWUT-Mk-urcu2IpMymw-1; Fri, 06 Jun 2025 13:29:14 -0400 X-MC-Unique: WxiPWUT-Mk-urcu2IpMymw-1 X-Mimecast-MFC-AGG-ID: WxiPWUT-Mk-urcu2IpMymw_1749230953 Received: from mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.12]) (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 mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 56D9B18002BB; Fri, 6 Jun 2025 17:29:13 +0000 (UTC) Received: from f41-zbm-amd (unknown [10.22.88.9]) by mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 8AB5C19560B2; Fri, 6 Jun 2025 17:29:12 +0000 (UTC) Date: Fri, 6 Jun 2025 10:29:08 -0700 From: Kevin Buettner To: Pedro Alves Cc: gdb-patches@sourceware.org Subject: Re: [PATCH] Adjust gdb.arch/amd64-watchpoint-downgrade.exp for Cygwin Message-ID: <20250606102908.5523c841@f41-zbm-amd> In-Reply-To: <20250606165930.970618-1-pedro@palves.net> References: <20250606165930.970618-1-pedro@palves.net> Organization: Red Hat MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.0 on 10.30.177.12 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: n_Kt3sQUtiywjaLCg2fgSlt-qe7T_3EVjpcpVAqDUYU_1749230953 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 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 On Fri, 6 Jun 2025 17:59:30 +0100 Pedro Alves wrote: > The gdb.arch/amd64-watchpoint-downgrade.exp testcase is assuming the > output of debugging a single-thread program, like so, on e.g., > GNU/Linux: > > starti > Starting program: .../gdb.arch/amd64-watchpoint-downgrade/amd64-watchpoint-downgrade > warning: watchpoint 1 downgraded to software watchpoint > > Program stopped. > 0x00007ffff7fe32b0 in _start () from /lib64/ld-linux-x86-64.so.2 > > However, on Cygwin, where all inferiors are multi-threaded (because > both Windows and the Cygwin runtime spawn a few helper threads), we > get: > > starti > Starting program: .../gdb.arch/amd64-watchpoint-downgrade/amd64-watchpoint-downgrade > [New Thread 4652.0x17e4] > warning: watchpoint 1 downgraded to software watchpoint > > Thread 1 stopped. > 0x00007ffbfc1c0911 in ntdll!LdrInitShimEngineDynamic () from C:/Windows/SYSTEM32/ntdll.dll > > This commit adjusts the testcase to work with either output. Approved-by: Kevin Buettner