I want to dump a process' memory when it exits. All the solutions I've seen using gcore
, gdb
or even procdump for linux dump the core in the middle of the execution and not exactly when it terminates
Procdump for windows has a very elegant solution for this, i.e. -t
will allow procdump to create a dump when the process exits.
I stumbled on to ulimit -c unlimited
but this again will only generate dumps for non-graceful exits.
The process I want a dump for can be any process and not exactly my application.