diff options
author | Kostya Serebryany <kcc@google.com> | 2013-11-18 08:20:13 +0000 |
---|---|---|
committer | Kostya Serebryany <kcc@google.com> | 2013-11-18 08:20:13 +0000 |
commit | 8b0c8a8b6fd2817b0697c255297ca9d48076fcbf (patch) | |
tree | 2bb5b5a719c832a8a99d7077263cfdbd06e145c2 /lib/asan/asan_linux.cc | |
parent | ce64270a78fac8b4e388756402903757d5ed9103 (diff) |
[asan] support __hppa__ (by John David Anglin)
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@194995 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/asan/asan_linux.cc')
-rw-r--r-- | lib/asan/asan_linux.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/asan/asan_linux.cc b/lib/asan/asan_linux.cc index 2aea32a18..39eec3bfd 100644 --- a/lib/asan/asan_linux.cc +++ b/lib/asan/asan_linux.cc @@ -58,6 +58,12 @@ void GetPcSpBp(void *context, uptr *pc, uptr *sp, uptr *bp) { *pc = ucontext->uc_mcontext.arm_pc; *bp = ucontext->uc_mcontext.arm_fp; *sp = ucontext->uc_mcontext.arm_sp; +# elif defined(__hppa__) + ucontext_t *ucontext = (ucontext_t*)context; + *pc = ucontext->uc_mcontext.sc_iaoq[0]; + /* GCC uses %r3 whenever a frame pointer is needed. */ + *bp = ucontext->uc_mcontext.sc_gr[3]; + *sp = ucontext->uc_mcontext.sc_gr[30]; # elif defined(__x86_64__) ucontext_t *ucontext = (ucontext_t*)context; *pc = ucontext->uc_mcontext.gregs[REG_RIP]; |