is there a way to generate a gdb-readable coredump when running programs compiled with MinGW? is there a way to generate a gdb-readable coredump when running programs compiled with MinGW? windows windows

is there a way to generate a gdb-readable coredump when running programs compiled with MinGW?


windows does not create core files (on linux they are dumped by the kernel iirc)you can try to attach with gdb with the crash dialog opened but I doubt it will work

if you use msvc instead you can create a minidump debuggable in visualstudio but there is no way to create same dump with gcc

google made a software that you may find useful, but I'm not sure it can produce stuff with gcc

http://code.google.com/p/google-breakpad/

or you can set drmingw as jit debugger

drmingw -i

I'm sure it is possible to get something like a backtrace also on mingw, since mingw compiled llvm is able to dump a trace

http://code.google.com/p/backtrace-mingw/

looks like simpler but I've not tested it

compile with -g3 (and if you can -O0)