mirror of
https://github.com/yuzu-emu/breakpad.git
synced 2024-12-23 06:45:30 +00:00
Fix Linux/ARM GetInstructionPointer() in minidump_writer.cc
On ARM, the 'ip' register (a.k.a. r12) is not the same than 'pc' (a.k.a. r15) which holds the real instruction pointer. Review URL: https://breakpad.appspot.com/443002 git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@1021 4c0a9323-5329-0410-9bdc-e9ce6186880e
This commit is contained in:
parent
13d9e27ef0
commit
0efce7d2a8
|
@ -1076,7 +1076,7 @@ class MinidumpWriter {
|
|||
}
|
||||
|
||||
uintptr_t GetInstructionPointer() {
|
||||
return ucontext_->uc_mcontext.arm_ip;
|
||||
return ucontext_->uc_mcontext.arm_pc;
|
||||
}
|
||||
#else
|
||||
#error "This code has not been ported to your platform yet."
|
||||
|
|
Loading…
Reference in a new issue