Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH 0/5] Fix a few Cygwin/MinGW problems
@ 2026-05-22  0:16 Pedro Alves
  2026-05-22  0:16 ` [PATCH 1/5] Fix "set cwd ..." on Cygwin, part 1 Pedro Alves
                   ` (4 more replies)
  0 siblings, 5 replies; 13+ messages in thread
From: Pedro Alves @ 2026-05-22  0:16 UTC (permalink / raw)
  To: gdb-patches

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


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2026-05-25 16:48 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-05-22  0:16 [PATCH 0/5] Fix a few Cygwin/MinGW problems Pedro Alves
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox