From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id YvOoKHegD2q1sQ0AWB0awg (envelope-from ) for ; Thu, 21 May 2026 20:16:55 -0400 Received: by simark.ca (Postfix, from userid 112) id 95AC91E091; Thu, 21 May 2026 20:16:55 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-2.3 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, 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 E3AD91E024 for ; Thu, 21 May 2026 20:16:54 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id B953248F665B for ; Fri, 22 May 2026 00:16:53 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B953248F665B Received: from mail-wr1-f47.google.com (mail-wr1-f47.google.com [209.85.221.47]) by sourceware.org (Postfix) with ESMTPS id E37E148F66C6 for ; Fri, 22 May 2026 00:16:29 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E37E148F66C6 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=palves.net Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org E37E148F66C6 Authentication-Results: sourceware.org; arc=none smtp.remote-ip=209.85.221.47 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1779408990; cv=none; b=WK8cW2sqtTL37FGnfnzqI7Cxctro7cozlq30uw1xmoTyFr1kHFPt8bnjDU4I4gKWJur8reDWo1oQAglrnwqrXSnSnF4Y8sjmOnHCDBWkwZ8XSHcpzFQByzuJ8DUO90QDVDdKQsiPhzVcOmWM7VTEUFX7OQ5ImF4CHCTaIlV99mk= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1779408990; c=relaxed/simple; bh=OSpWmPjWfT9vZFDxejTA+3YeYJ/leFD4eeyg5Kep8mk=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=c7qRWv5BRgrqjv89U8wBcJQQUN/7QuoUk/gQbwRyP3v3BTDkKuL+vrJm+XunSYwwVmTrZSYaeJodmdes6Dz1uLd6E9bghzkg6kH9g7ZVY3nOW1bcLUWHdmrVHTiROGmqTQGPR364S8kmfYum8aeKewjm4dAEMVv/7J09tZvLI3E= ARC-Authentication-Results: i=1; sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E37E148F66C6 Received: by mail-wr1-f47.google.com with SMTP id ffacd0b85a97d-449de065cb3so6317855f8f.2 for ; Thu, 21 May 2026 17:16:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1779408989; x=1780013789; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Vl3H6GQflC+easBGehi79pZnbnWXDvljJZz/FAEmVFc=; b=ZHp4gCY2om2vrS/iXJfZm5C+Bjapvjs8FJEzAbagEBjEeCtEhuH+cLteehl5XRH0MU 79YP9WDPCUrYd4X/yR4dxoRH0ihuJJ0Bt2RsYgr3fvRuEbuuOwJZbklHE6f2kBEeuiFm cRmhW7WL2zwehnTal6ZPOJ3COOcfTFA8GQ50yb+MER/qtFFFCLjV6xI1lbgx9n5xRxib f9EvL8jmZRrk8FP4+08CzW6UOTrZw1z9doQ91IhZqdVS8k8VOYQ7xs4lDanyYnAQ1uty GSF6zgq3s72epoJQbQ2UPk5klYRhWJbzb1GVkANNDLCNhWaGFKfjW0IBgGPoPrLdMuPP Dx0g== X-Gm-Message-State: AOJu0Yy137yUopJV+V/z4S1MGQNKuynQEn6R2Nak42AjTAaCkahL1414 q8QgIkpsYF2ebm1uohGqmgWWVxWJ08Lw3N1vcm4LotLVWa/VDLKQRfgbzoZSVA== X-Gm-Gg: Acq92OEhN1wtARVi4nqpDL36+3ImNFyaOdfzoayL1o0N7DfRWmVhdydmfvEx8TEA/+0 rkuiDSmwP1nkpy9ayPpuwHvWCNvFejFUYcuo5tdTPcMbbIQuWE9LwOTbETUVHZ3uLHNKbZW+cRT SRZFEVccxRLI8gf7UtF+cLRfvXjnoICdRaLAfvFFN2/wB3LdLasP/C8VEhvGa5EJQsV7bEycLKD ciPhaogw5SyjID+Pj+1ieVia++9T7ou1E6A+voKq7vVr2LhTDjp1TBmN81wHuu/1K4476YAquup xSPjR3peLDOPkm1e0adA5gDAO3BApGQwPcnoLxu8Mu5IRntkYtnmrC8w31d0aHMxLvI692wV8Pl XEXLuVaT2cBezfyTotBYCgY/ZyU+Uz5EquXPC2sDiFAU+mqGzruzXchWRhfPggcsEYEywQ6JTxq JvDzmwKz9a8TrH9pFNqZxh8g== X-Received: by 2002:a05:6000:4310:b0:45e:a19f:22e0 with SMTP id ffacd0b85a97d-45eb367ebf9mr1388755f8f.10.1779408988524; Thu, 21 May 2026 17:16:28 -0700 (PDT) Received: from localhost ([2001:8a0:fae3:2600:cb04:347e:aaad:ca08]) by smtp.gmail.com with UTF8SMTPSA id ffacd0b85a97d-45eb4ac4e6bsm861412f8f.20.2026.05.21.17.16.28 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 21 May 2026 17:16:28 -0700 (PDT) From: Pedro Alves To: gdb-patches@sourceware.org Subject: [PATCH 0/5] Fix a few Cygwin/MinGW problems Date: Fri, 22 May 2026 01:16:21 +0100 Message-ID: <20260522001626.393908-1-pedro@palves.net> X-Mailer: git-send-email 2.53.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 I tried to make gdb.python/py-events.exp work on Cygwin, which, as usual, revealed a few other problems... - "set cwd ..." does not work properly on Cygwin, the program does not even start up with that -- affects both GDB and GDBserver. - gdb.base/exitsignal.exp needs adjustment for Cygwin. - The inferior exit code / termination signal is mishandled on Windows. - gdb.python/py-events.exp needs a lot of adjustment for Cygwin and MinGW. gdb.base/exitsignal.exp and gdb.python/py-events.exp both tested on x86_64-unknown-linux-gnu and on Cygwin. All fixed by this series. Pedro Alves (5): Fix "set cwd ..." on Cygwin, part 1 Fix "set cwd ..." on Cygwin, part 2 Adjust gdb.base/exitsignal.exp for Cygwin Fix exit/signal code on Cygwin Adjust gdb.python/py-events.exp for Cygwin/MinGW gdb/nat/windows-nat.c | 42 +++++++++++++++ gdb/nat/windows-nat.h | 4 ++ gdb/testsuite/gdb.base/exitsignal.exp | 8 ++- gdb/testsuite/gdb.python/py-events.c | 3 -- gdb/testsuite/gdb.python/py-events.exp | 73 ++++++++++++++------------ gdb/windows-nat.c | 28 ++++------ gdbserver/win32-low.cc | 43 +++++++++------ 7 files changed, 130 insertions(+), 71 deletions(-) base-commit: f6c1ca239d932db39a6f19d9bd343f4f4fddba76 -- 2.53.0