From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id o3zPIHoDEGr7bA4AWB0awg (envelope-from ) for ; Fri, 22 May 2026 03:19:22 -0400 Authentication-Results: simark.ca; dkim=pass (2048-bit key; unprotected) header.d=gnu.org header.i=@gnu.org header.a=rsa-sha256 header.s=fencepost-gnu-org header.b=Fd7VjWsV; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 75EC41E091; Fri, 22 May 2026 03:19:22 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-3.4 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_BLOCKED, RCVD_IN_VALIDITY_RPBL_BLOCKED,RCVD_IN_VALIDITY_SAFE_BLOCKED autolearn=ham autolearn_force=no version=4.0.1 Received: from vm01.sourceware.org (vm01.sourceware.org [38.145.34.32]) (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 120F51E062 for ; Fri, 22 May 2026 03:19:22 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 8B78148F536D for ; Fri, 22 May 2026 07:19:21 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8B78148F536D Authentication-Results: sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=gnu.org header.i=@gnu.org header.a=rsa-sha256 header.s=fencepost-gnu-org header.b=Fd7VjWsV Received: from eggs.gnu.org (eggs.gnu.org [IPv6:2001:470:142:3::10]) by sourceware.org (Postfix) with ESMTPS id CA17A48F60F6 for ; Fri, 22 May 2026 07:18:57 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org CA17A48F60F6 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gnu.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gnu.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org CA17A48F60F6 Authentication-Results: sourceware.org; arc=none smtp.remote-ip=2001:470:142:3::10 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1779434337; cv=none; b=DvccZhSkgkfN4WSgLBF8VyNJqaenuGi6roHZWr0b8BQKdBnpAT2Y3bGBFIow5Z/CyrTNBiLXB9fEwcgBzLQQDzPlGFTMu5DFQVrA4z4zX/BNkeNxYtdTFqUS4eO0Gz0qCWGuCVFn3w/CSPGMLnzkBB1dFVjpb8bHnfmde5q2Qbw= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1779434337; c=relaxed/simple; bh=VKmvRbL2vKNP31KSxjizGoFaMXEr7s2D+Weam9FLHGk=; h=DKIM-Signature:Date:Message-Id:From:To:Subject; b=geU9hnEMu/iYz5sM1ee/uxOdbAe0VvebHzph/8BkjqYUMqKFuZq8menZ+/pWy2q20n5f91RHyEh1HChyYUuC9i07Dcj6oau5ilgEN8J5zZeGxqy6O4ldfRMzdthVu42IWN0vH9F9CLAPV2wpoRJWTfCwRdtMebjIX3OYf9B0G+E= ARC-Authentication-Results: i=1; sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=gnu.org header.i=@gnu.org header.a=rsa-sha256 header.s=fencepost-gnu-org header.b=Fd7VjWsV DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CA17A48F60F6 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1wQK9p-0004OS-8N; Fri, 22 May 2026 03:18:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=QnfqMp4OLmITNzpPopkv2nxMX8+MP7H62luR7Tbn8Ew=; b=Fd7VjWsVxfxz ld+KBw4OWX+vdvXWiIHC/iJkbYveW5UCBSo/8VfPdW7DGr6mSUoGIOFumgl+gkqy3PwR5fzbPw95Q P5z/d37l5weKzwjK5WtarpMGPYgiKg+4r38q2pe8TFb4FSI4a0BdYvBo9vao3lDCpOu5u2LgjOKVD WxJyA5vKUbWYM0pHKnwrVnU4+LK5lfnbtQzAjVF7VE8qFbYEcKgmQ9QmmxMoWxdmT9b5885DueMTh zZXYSbBPir6AHpRTMcSo8ybOyVXg39IUjQKYXHT+8mBd20Wx3SW+KhqXV/Jbwn90p43Cp/5/4AQkJ Uu7UOZwt5H7tb6mX7lxBZw==; Date: Fri, 22 May 2026 10:18:35 +0300 Message-Id: <86qzn3yks4.fsf@gnu.org> From: Eli Zaretskii To: Pedro Alves Cc: gdb-patches@sourceware.org In-Reply-To: <20260522001626.393908-6-pedro@palves.net> (message from Pedro Alves on Fri, 22 May 2026 01:16:26 +0100) Subject: Re: [PATCH 5/5] Adjust gdb.python/py-events.exp for Cygwin/MinGW References: <20260522001626.393908-1-pedro@palves.net> <20260522001626.393908-6-pedro@palves.net> 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 > From: Pedro Alves > Date: Fri, 22 May 2026 01:16:26 +0100 > > This commit fixes several issues in gdb.python/py-events.exp for > Cygwin and MinGW. With these fixed, the testcase passes cleanly on > Cygwin. I haven't tested on MinGW, but at least the test should be > able to compile & run there now. > > 1) - GDB prints Windows thread IDs in hex: > > (gdb) thread > [Current thread is 1 (Thread 9528.0xa9c)] > > The corrent code assume decimal, so we only (incorrectly) extract the > "0" after the dot. > > 2) - Thread and process ID number spaces are different. > > The current code assumes that the extract thread is is the same number ^^ Typo: should be "ID". > as the extracted process id, which is not true on Windows. > > 3) - there is no "info proc" command on Windows > > The testcase is using "info proc" to extract the inferior's process > it. But "info proc" does not exist on all targets, including Windows. ^^ Same here. Thanks. (I don't add the reviewed-by signature, because I cannot review the expect code.)