Index: src/processor/minidump_processor.cc |
diff --git a/src/processor/minidump_processor.cc b/src/processor/minidump_processor.cc |
index 914685602035d07139e32a679deb1cd9d68804a6..357ab9ef6a2d214bb9b84d009ec235fb63e6bad4 100644 |
--- a/src/processor/minidump_processor.cc |
+++ b/src/processor/minidump_processor.cc |
@@ -745,6 +745,19 @@ string MinidumpProcessor::GetCrashReason(Minidump *dump, uint64_t *address) { |
BPLOG(INFO) << "Unknown exception reason " << reason; |
break; |
} |
+ } else if (raw_system_info->processor_architecture == |
+ MD_CPU_ARCHITECTURE_X86 || |
+ raw_system_info->processor_architecture == |
+ MD_CPU_ARCHITECTURE_AMD64) { |
+ switch (exception_flags) { |
+ case MD_EXCEPTION_CODE_MAC_X86_GENERAL_PROTECTION_FAULT: |
+ reason.append("EXC_I386_GPFLT"); |
+ break; |
+ default: |
+ reason.append(flags_string); |
+ BPLOG(INFO) << "Unknown exception reason " << reason; |
+ break; |
+ } |
} else { |
reason.append(flags_string); |
BPLOG(INFO) << "Unknown exception reason " << reason; |
@@ -795,6 +808,7 @@ string MinidumpProcessor::GetCrashReason(Minidump *dump, uint64_t *address) { |
} |
break; |
} |
+ case MD_CPU_ARCHITECTURE_AMD64: |
case MD_CPU_ARCHITECTURE_X86: { |
switch (exception_flags) { |
case MD_EXCEPTION_CODE_MAC_X86_INVALID_OPERATION: |
@@ -810,7 +824,7 @@ string MinidumpProcessor::GetCrashReason(Minidump *dump, uint64_t *address) { |
reason.append("EXC_STKFLT"); |
break; |
case MD_EXCEPTION_CODE_MAC_X86_GENERAL_PROTECTION_FAULT: |
- reason.append("EXC_GPFLT"); |
+ reason.append("EXC_I386_GPFLT"); |
break; |
case MD_EXCEPTION_CODE_MAC_X86_ALIGNMENT_FAULT: |
reason.append("EXC_ALIGNFLT"); |
@@ -866,6 +880,7 @@ string MinidumpProcessor::GetCrashReason(Minidump *dump, uint64_t *address) { |
} |
break; |
} |
+ case MD_CPU_ARCHITECTURE_AMD64: |
case MD_CPU_ARCHITECTURE_X86: { |
switch (exception_flags) { |
case MD_EXCEPTION_CODE_MAC_X86_DIV: |
@@ -966,6 +981,7 @@ string MinidumpProcessor::GetCrashReason(Minidump *dump, uint64_t *address) { |
} |
break; |
} |
+ case MD_CPU_ARCHITECTURE_AMD64: |
case MD_CPU_ARCHITECTURE_X86: { |
switch (exception_flags) { |
case MD_EXCEPTION_CODE_MAC_X86_SGL: |