main.cpp
#include <stdexcept>
int main()
{
throw std::runtime_error("AAAA");
}
I generate and run the exe file:
g++ -g main.cpp
a.exe
I see no output on screen. I see no core file.
I followed this post as well and it didn't work.
It seems ulimit
also does not exist under cygwin.
Update
The output of ulimit -a
:
In CMD:
>ulimit -a
'ulimit' is not recognized as an internal or external command,
operable program or batch file.
In bash:
$ ulimit -a
core file size (blocks, -c) unlimited
data seg size (kbytes, -d) unlimited
file size (blocks, -f) unlimited
open files (-n) 256
pipe size (512 bytes, -p) 8
stack size (kbytes, -s) 2032
cpu time (seconds, -t) unlimited
max user processes (-u) 256
virtual memory (kbytes, -v) unlimited