Skip to content

Commit

Permalink
fixed crashpad crash issue
Browse files Browse the repository at this point in the history
logcat:
```
F chromium: [0317/105229.493752:FATAL:cpu_context.cc(190)] Check failed: false.
```

Signed-off-by: Wang Chen <wangchen20@iscas.ac.cn>
  • Loading branch information
unicornx committed Apr 3, 2023
1 parent 0760bc1 commit ee7f0c8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions third_party/crashpad/crashpad/snapshot/cpu_context.cc
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,10 @@ uint64_t CPUContext::StackPointer() const {
return arm->sp;
case kCPUArchitectureARM64:
return arm64->sp;
case kCPUArchitectureRISCV32:
return riscv32->regs[2];
case kCPUArchitectureRISCV64:
return riscv64->regs[2];
default:
NOTREACHED();
return ~0ull;
Expand Down

0 comments on commit ee7f0c8

Please sign in to comment.