[mips64] Support for mips n64

Adding remaining mips n64 support including stackwalker.

BUG=None
TEST=manually tested on Linux/Android
R=vapier@chromium.org

Review URL: https://codereview.chromium.org/1418453011 .
This commit is contained in:
Mike Frysinger
2016-02-06 18:58:39 -05:00
parent c199f5b122
commit 76c51742c9
19 changed files with 1176 additions and 140 deletions

View File

@@ -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,