public inbox for cygwin-patches@cygwin.com
 help / color / mirror / Atom feed
* [PATCH 0/5] Coredump under 'ulimit -c' control (v2)
@ 2024-01-12 14:09 Jon Turney
  2024-01-12 14:09 ` [PATCH 1/5] Cygwin: Make 'ulimit -c' control writing a coredump Jon Turney
                   ` (5 more replies)
  0 siblings, 6 replies; 26+ messages in thread
From: Jon Turney @ 2024-01-12 14:09 UTC (permalink / raw)
  To: cygwin-patches; +Cc: Jon Turney

Write a coredump under 'ulimit -c' control and related changes.

The idea here is to make debugging using a coredump work as usual on a unix,
e.g.:

$ ulimit -c unlimited

$ ./segv-program
*** starting '"C:\cygwin64\bin\dumper.exe" "C:\cygwin64\work\segv-program.exe" 16156' for pid 1398, tid 7136

$ gdb segv-program.exe segv-program.exe.core
[...]

Jon Turney (5):
  Cygwin: Make 'ulimit -c' control writing a coredump
  Cygwin: Disable writing core dumps by default.
  Cygwin: Define and use __WCOREFLAG
  Cygwin: Treat api_fatal() similarly to a core-dumping signal
  Cygwin: Update documentation for cygwin_stackdump

 winsup/cygwin/dcrt0.cc                |   6 +-
 winsup/cygwin/environ.cc              |   1 +
 winsup/cygwin/exceptions.cc           | 122 ++++++++++++++++++++++----
 winsup/cygwin/include/cygwin/wait.h   |   5 +-
 winsup/cygwin/local_includes/winsup.h |   2 +
 winsup/cygwin/mm/cygheap.cc           |   2 +-
 winsup/cygwin/release/3.5.0           |   7 ++
 winsup/doc/cygwinenv.xml              |  25 ++++--
 winsup/doc/misc-funcs.xml             |   4 +
 winsup/doc/new-features.xml           |  12 +++
 winsup/doc/utils.xml                  |  43 +++++----
 11 files changed, 180 insertions(+), 49 deletions(-)

-- 
2.43.0


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

end of thread, other threads:[~2024-01-29 11:16 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-12 14:09 [PATCH 0/5] Coredump under 'ulimit -c' control (v2) Jon Turney
2024-01-12 14:09 ` [PATCH 1/5] Cygwin: Make 'ulimit -c' control writing a coredump Jon Turney
2024-01-13 14:20   ` Jon Turney
2024-01-15  9:46     ` Corinna Vinschen
2024-01-15 13:27       ` Jon Turney
2024-01-15 14:28         ` Corinna Vinschen
2024-01-16 13:52           ` Jon Turney
2024-01-16 13:54             ` Corinna Vinschen
2024-01-23 14:20   ` Jon Turney
2024-01-23 14:29     ` Corinna Vinschen
2024-01-24 13:28       ` Jon Turney
2024-01-24 14:39         ` Corinna Vinschen
2024-01-25 14:50           ` Jon Turney
2024-01-25 18:21             ` Corinna Vinschen
2024-01-25 20:03               ` Jon Turney
2024-01-26 11:12                 ` Corinna Vinschen
2024-01-26 11:52                   ` Corinna Vinschen
2024-01-27 15:12                     ` Jon Turney
2024-01-29 11:16                       ` Corinna Vinschen
2024-01-12 14:09 ` [PATCH 2/5] Cygwin: Disable writing core dumps by default Jon Turney
2024-01-12 14:09 ` [PATCH 3/5] Cygwin: Define and use __WCOREFLAG Jon Turney
2024-01-12 14:09 ` [PATCH 4/5] Cygwin: Treat api_fatal() similarly to a core-dumping signal Jon Turney
2024-01-12 14:09 ` [PATCH 5/5] Cygwin: Update documentation for cygwin_stackdump Jon Turney
2024-01-12 18:44   ` Corinna Vinschen
2024-01-13 13:40     ` Jon Turney
2024-01-12 18:41 ` [PATCH 0/5] Coredump under 'ulimit -c' control (v2) Corinna Vinschen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).