mirror of
https://git.suyu.dev/suyu/breakpad.git
synced 2026-03-24 02:22:57 +00:00
[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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user