mirror of
https://git.suyu.dev/suyu/breakpad.git
synced 2026-03-11 23: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:
@@ -1009,7 +1009,8 @@ bool MinidumpContext::Read(uint32_t expected_size) {
|
||||
break;
|
||||
}
|
||||
|
||||
case MD_CONTEXT_MIPS: {
|
||||
case MD_CONTEXT_MIPS:
|
||||
case MD_CONTEXT_MIPS64: {
|
||||
if (expected_size != sizeof(MDRawContextMIPS)) {
|
||||
BPLOG(ERROR) << "MinidumpContext MIPS size mismatch, "
|
||||
<< expected_size
|
||||
@@ -1157,6 +1158,11 @@ bool MinidumpContext::CheckAgainstSystemInfo(uint32_t context_cpu_type) {
|
||||
if (system_info_cpu_type == MD_CPU_ARCHITECTURE_MIPS)
|
||||
return_value = true;
|
||||
break;
|
||||
|
||||
case MD_CONTEXT_MIPS64:
|
||||
if (system_info_cpu_type == MD_CPU_ARCHITECTURE_MIPS64)
|
||||
return_value = true;
|
||||
break;
|
||||
}
|
||||
|
||||
BPLOG_IF(ERROR, !return_value) << "MinidumpContext CPU " <<
|
||||
@@ -4209,6 +4215,9 @@ bool Minidump::GetContextCPUFlagsFromSystemInfo(uint32_t *context_cpu_flags) {
|
||||
case MD_CPU_ARCHITECTURE_MIPS:
|
||||
*context_cpu_flags = MD_CONTEXT_MIPS;
|
||||
break;
|
||||
case MD_CPU_ARCHITECTURE_MIPS64:
|
||||
*context_cpu_flags = MD_CONTEXT_MIPS64;
|
||||
break;
|
||||
case MD_CPU_ARCHITECTURE_ALPHA:
|
||||
*context_cpu_flags = MD_CONTEXT_ALPHA;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user