newlib-cygwin/winsup/cygwin/local_includes
Jon Turney 91457377d6
Cygwin: Make 'ulimit -c' control writing a coredump
Pre-format a command to be executed on a fatal error to run 'dumper'
(using an absolute path).

Factor out executing a pre-formatted command, so we can use that for
invoking the JIT debugger in try_to_debug() (if error_start is present
in the CYGWIN env var) and to invoke dumper when a fatal error occurs.

On a fatal error, if the core file size limit is greater than 1MB,
invoke dumper to write a core dump. Otherwise, if that limit is greater
than 0, write a .stackdump file, as previously.

Adjust and clarify the associated documentation.

Also: Fix so that the error_start JIT debugger is now invoked, even when
ulimit -c is zero.

Also: Fix uses of console_printf() inside exec_prepared_command(). It's
output is written via the Windows console device, so needs to use
Windows-style line endings.

Also: consistently return non-zero from try_to_debug() if we debugged.

Future work: Truncate or remove the file written, if it exceeds the
maximum size set by the ulimit.

Future work: Using the words "fatal error" could probably be improved
on. This means exiting on one of the "certain signals whose default
action is to cause the process to terminate and produce a core dump
file".
2024-01-16 14:07:03 +00:00
..
machine Cygwin: add local machine/asm.h header 2022-12-20 10:13:59 +01:00
child_info.h
clock.h
collate.h Cygwin: glob: implement collating symbol support 2023-02-20 22:50:17 +01:00
cpuid.h
create_posix_thread.h Cygwin: rename CygwinCreateThread to create_posix_thread 2022-08-10 18:06:28 +02:00
cygerrno.h
cygheap.h Allow deriving the current user's home directory via the HOME variable 2023-03-28 12:18:14 +02:00
cygheap_malloc.h
cygmalloc.h Cygwin: fork: fix a potential hang in fork 2022-08-29 12:25:24 +02:00
cygserver.h
cygserver_ipc.h
cygserver_msg.h
cygserver_pwdgrp.h
cygserver_sem.h
cygserver_setpwd.h
cygserver_shm.h
cygthread.h
cygtls.h Cygwin: cygtls: drop useless alignment directives 2022-09-05 19:52:28 +02:00
cygwait.h
cygwin-cxx.h
cygwin_version.h
cygxdr.h
debug.h Cygwin: push missing change to debug.h 2022-08-22 14:53:30 +02:00
devices.h Cygwin: Add /dev/disk/by-id symlinks 2023-11-05 17:01:43 +01:00
dll_init.h
dtable.h
environ.h
errmap.h
exception.h
fhandler.h Cygwin: fallocate(2): handle FALLOC_FL_PUNCH_HOLE and FALLOC_FL_ZERO_RANGE 2023-11-28 10:55:38 +01:00
fhandler_virtual.h
gcc_seh.h
gmon.h
heap.h
lc_collelem.h Cygwin: nlsfuncs.cc: introduce collating elements and helper functions 2023-02-20 22:38:52 +01:00
lc_def_codesets.h Cygwin: locale: fix devanagari modifier 2023-02-26 17:17:33 +01:00
lc_era.h
lc_msg.h
ldap.h
loadavg.h
math.h
memory_layout.h Cygwin: fix two comments in heap.cc and memory_layout.h 2023-01-18 20:13:38 +01:00
miscfuncs.h Cygwin: miscfuncs.h: fix comment 2022-08-19 15:51:49 +02:00
mmap_alloc.h Cygwin: add memory_layout.h 2022-10-28 16:26:53 +02:00
mmap_helper.h
mount.h Cygwin: drop stray fs_info::check_ssd declaration 2023-12-01 09:56:05 +01:00
mqueue_types.h
mtinfo.h
nfs.h
ntdll.h Cygwin: ntdll.h: add missing NtQueryVolumeInformationFile definitions 2023-11-30 22:37:35 +01:00
path.h Cygwin: sparse support: enable automatic sparsifying of files on SSDs 2023-11-30 22:37:35 +01:00
pathfinder.h
perprocess.h
pinfo.h
posix_timer.h
profil.h
pwdgrp.h
registry.h
sec_posixacl.h
security.h Cygwin: get_posix_access: Make mode_t parameter mandatory 2023-02-09 21:58:44 +01:00
select.h Cygwin: dsp: Implement select()/poll(). 2023-09-06 22:06:57 +09:00
shared_info.h Cygwin: open_shared: don't reuse shared_locations parameter as output 2023-01-17 16:32:14 +01:00
sigproc.h
spinlock.h
string.h
sync.h
thread.h
timerfd.h
tls_pbuf.h
tty.h Cygwin: ctty: Replace ctty constant with more descriptive macros. 2023-03-07 10:51:29 +09:00
userinfo.h
vstrlist.h
wchar.h Cygwin: Add ISO C11 functions c16rtomb, c32rtomb, mbrtoc16, mbrtoc32. 2023-07-31 22:39:09 +02:00
wincap.h wincap.h: add wincap member has_user_shstk 2023-06-20 10:06:56 +02:00
winf.h Cygwin: execve: drop argument size limit 2023-08-29 14:17:04 +02:00
wininfo.h
winlean.h Cygwin: fs_info: update filesystem flags and check Windows 7 flags 2023-03-20 12:55:30 +01:00
winsup.h Cygwin: Make 'ulimit -c' control writing a coredump 2024-01-16 14:07:03 +00:00