Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Pedro Alves <pedro@palves.net>
To: gdb-patches@sourceware.org
Subject: [PATCH 0/5] Fix a few Cygwin/MinGW problems
Date: Fri, 22 May 2026 01:16:21 +0100	[thread overview]
Message-ID: <20260522001626.393908-1-pedro@palves.net> (raw)

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


             reply	other threads:[~2026-05-22  0:16 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-22  0:16 Pedro Alves [this message]
2026-05-22  0:16 ` [PATCH 1/5] Fix "set cwd ..." on Cygwin, part 1 Pedro Alves
2026-05-22 13:54   ` Tom Tromey
2026-05-22  0:16 ` [PATCH 2/5] Fix "set cwd ..." on Cygwin, part 2 Pedro Alves
2026-05-22 14:37   ` Tom Tromey
2026-05-25 16:43     ` Pedro Alves
2026-05-22  0:16 ` [PATCH 3/5] Adjust gdb.base/exitsignal.exp for Cygwin Pedro Alves
2026-05-22 15:09   ` Tom Tromey
2026-05-22  0:16 ` [PATCH 4/5] Fix exit/signal code on Cygwin Pedro Alves
2026-05-22  7:15   ` Eli Zaretskii
2026-05-25 16:47     ` Pedro Alves
2026-05-22  0:16 ` [PATCH 5/5] Adjust gdb.python/py-events.exp for Cygwin/MinGW Pedro Alves
2026-05-22  7:18   ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260522001626.393908-1-pedro@palves.net \
    --to=pedro@palves.net \
    --cc=gdb-patches@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox