creating CLR dumps with breakpad
I am using Google Breakpad to generate crash dumps for my windows application when it crashes.
My application mixes C++ native code with C# CLR code. The dumps that breakpad produces don't include any CLR information.
Is it possi开发者_开发技巧ble to turn CLR dump on with Breakpad? What APIs are necessary to create CLR dumps?
What do you mean by "CLR information"? I've been using Breakpad to create crash dumps and I can debug through them using SOS.
Edit: Here's what you need to do
.loadby sos clr $$ For .NET 4
~0s $$ Most crashes are on Thread 0
!pe $$ Print the exception
~1s $$ Let's take a look at Thread 1
!clrstack $$ Dump the managed stack
As I explained in How do I take a good crash dump in .NET, the following conditions should be met:
- bitness matches the bitness of the process
- a dump with all memory is needed
The latter corresponds to MiniDumpWithFullMemory
of the MINIDUMP_TYPE enumeration.
精彩评论