Implement the createdump policy options and env variables (#11032)
authorMike McLaughlin <mikem@microsoft.com>
Tue, 18 Apr 2017 23:54:53 +0000 (16:54 -0700)
committerGitHub <noreply@github.com>
Tue, 18 Apr 2017 23:54:53 +0000 (16:54 -0700)
commit29e59e81de5489a3c0515b5d1d50baeb06269bd1
treebaea5e7100306954e898b9977a552bafb2d20515
parentb8ed08061bdc1c00bd191d954d3f6a526067728e
Implement the createdump policy options and env variables (#11032)

Added these command line options:

-f, --name - dump path and file name. The pid can be placed in the name with %d. The default is "/tmp/coredump.%d"
-n, --normal - create minidump (default).
-h, --withheap - create minidump with heap.
-m, --micro - create triage minidump.
-d, --diag - enable diagnostic messages.

Added these environment variables:

COMPlus_DbgMiniDumpType - if set to "1" generate MiniDumpNormal, "2" MiniDumpWithPrivateReadWriteMemory, "3" MiniDumpFilterTriage. Default is MiniDumpNormal.
COMPlus_DbgMiniDumpName - if set, use as the template to create the dump path and file name. The pid can be placed in the name with %d. The default is "/tmp/coredump.%d".
src/debug/createdump/crashinfo.cpp
src/debug/createdump/crashinfo.h
src/debug/createdump/createdump.cpp
src/debug/createdump/dumpwriter.cpp
src/pal/src/thread/process.cpp