I am working on an application for MacOS. There I would like to store core dumps. But doing some tests I have seen that core files generated for MacOS are huge (more than 1 GB). Is there any way, programatically to tell OS to generate smaller core files?
I have seen the function setrlimit
, with parameter RLIMIT_CORE
. The documentation says it reduces the size of the core dump. But what information will be left out to make the file smaller? Can someone give some hints here?