The idea here is to make debugging using a coredump work as usual on a unix, e.g.:
$ ulimit -c unlimited $ ./segv-program *** starting 'dumper "C:/cygwin64/work/segv-program.exe" 3712' for pid 546, tid 10640 $ gdb segv-program.exe segv-program.exe.core [...] Jon Turney (2): Cygwin: Make 'ulimit -c' control writing a coredump Cygwin: Disable writing core dumps by default. winsup/cygwin/environ.cc | 1 + winsup/cygwin/exceptions.cc | 100 ++++++++++++++++++-------- winsup/cygwin/local_includes/winsup.h | 1 + winsup/cygwin/mm/cygheap.cc | 2 +- winsup/doc/cygwinenv.xml | 25 +++++-- winsup/doc/new-features.xml | 12 ++++ winsup/doc/utils.xml | 43 +++++++---- 7 files changed, 132 insertions(+), 52 deletions(-) -- 2.42.1