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:
digit@chromium.org 2012-08-30 12:01:43 +00:00
parent 13d9e27ef0
commit 0efce7d2a8

View file

@ -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."