开发者

creating CLR dumps with breakpad

开发者 https://www.devze.com 2023-03-27 19:30 出处:网络
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.

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号