Convert RISC-V numeric identifiers to strings
Printing the register values as part of the stack trace relies on the CPU architecture being "riscv" or "riscv64" rather than the numeric identifiers (0x8005 and 0x8006, respectively). Fixed: 1432306 Test: Run `minidump_stackwalk` on a RISC-V minidump Change-Id: I0009da687438d51047e2ee39ffa1c50d78798caa Reviewed-on: https://chromium-review.googlesource.com/c/breakpad/breakpad/+/4416399 Reviewed-by: Joshua Peraza <jperaza@chromium.org>
This commit is contained in:
parent
f6e42357d4
commit
b1775c56b2
1 changed files with 10 additions and 0 deletions
|
@ -633,6 +633,16 @@ bool MinidumpProcessor::GetCPUInfo(Minidump* dump, SystemInfo* info) {
|
|||
break;
|
||||
}
|
||||
|
||||
case MD_CPU_ARCHITECTURE_RISCV: {
|
||||
info->cpu = "riscv";
|
||||
break;
|
||||
}
|
||||
|
||||
case MD_CPU_ARCHITECTURE_RISCV64: {
|
||||
info->cpu = "riscv64";
|
||||
break;
|
||||
}
|
||||
|
||||
default: {
|
||||
// Assign the numeric architecture ID into the CPU string.
|
||||
char cpu_string[7];
|
||||
|
|
Loading…
Reference in a new issue