Index: src/tools/linux/md2core/minidump-2-core.cc |
diff --git a/src/tools/linux/md2core/minidump-2-core.cc b/src/tools/linux/md2core/minidump-2-core.cc |
index 102ce67777641bcf7e60798386ef735b498ac1ce..322bbad6d8c8e5ed1bfdd33748f09e18e9be95e7 100644 |
--- a/src/tools/linux/md2core/minidump-2-core.cc |
+++ b/src/tools/linux/md2core/minidump-2-core.cc |
@@ -494,11 +494,21 @@ ParseSystemInfo(CrashedProcess* crashinfo, const MinidumpMemoryRange& range, |
_exit(1); |
} |
#elif defined(__mips__) |
+# if _MIPS_SIM == _ABIO32 |
if (sysinfo->processor_architecture != MD_CPU_ARCHITECTURE_MIPS) { |
fprintf(stderr, |
- "This version of minidump-2-core only supports mips (32bit).\n"); |
+ "This version of minidump-2-core only supports mips o32 (32bit).\n"); |
_exit(1); |
} |
+# elif _MIPS_SIM == _ABI64 |
+ if (sysinfo->processor_architecture != MD_CPU_ARCHITECTURE_MIPS64) { |
+ fprintf(stderr, |
+ "This version of minidump-2-core only supports mips n64 (64bit).\n"); |
+ _exit(1); |
+ } |
+# else |
+# error "This mips ABI is currently not supported (n32)" |
+# endif |
#else |
#error "This code has not been ported to your platform yet" |
#endif |
@@ -525,6 +535,8 @@ ParseSystemInfo(CrashedProcess* crashinfo, const MinidumpMemoryRange& range, |
? "ARM" |
: sysinfo->processor_architecture == MD_CPU_ARCHITECTURE_MIPS |
? "MIPS" |
+ : sysinfo->processor_architecture == MD_CPU_ARCHITECTURE_MIPS64 |
+ ? "MIPS64" |
: "???", |
sysinfo->number_of_processors, |
sysinfo->processor_level, |