Skip to content

Commit

Permalink
Fix dump generation issues for VS4Mac
Browse files Browse the repository at this point in the history
Fixes issue: dotnet#60932
  • Loading branch information
mikem8361 committed Oct 27, 2021
1 parent 69270ff commit 0fb176f
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/coreclr/debug/createdump/crashreportwriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,16 +84,15 @@ CrashReportWriter::WriteCrashReport()
{
OpenObject();
bool crashed = false;
if (thread->ManagedExceptionObject() != 0)
if (thread->Tid() == m_crashInfo.CrashThread())
{
crashed = true;
exceptionType = "0x05000000"; // ManagedException
}
else
{
if (thread->Tid() == m_crashInfo.CrashThread())
if (thread->ManagedExceptionObject() != 0)
{
exceptionType = "0x05000000"; // ManagedException
}
else
{
crashed = true;
switch (m_crashInfo.Signal())
{
case SIGILL:
Expand Down

0 comments on commit 0fb176f

Please sign in to comment.