Fix unw_getcontext() return value on AArch64.
authorLogan Chien <tzuhsiang.chien@gmail.com>
Thu, 25 Jun 2015 15:12:46 +0000 (15:12 +0000)
committerLogan Chien <tzuhsiang.chien@gmail.com>
Thu, 25 Jun 2015 15:12:46 +0000 (15:12 +0000)
commit549d405877de13141bcb73d7f93a86817143c476
tree4a1c50dd923b0e55352057ae0a5269159f19da99
parent4dd6173bacb241aa819c5fa5874db71646810e0e
Fix unw_getcontext() return value on AArch64.

unw_getcontext() should return UNW_ESUCCESS on success.  Therefore, the
assembly for AArch64 is incorrect because "ldr x0, #0" is a PC-relative
load instead of an immediate value load.

llvm-svn: 240648
libunwind/src/UnwindRegistersSave.S
libunwind/test/unw_getcontext.pass.cpp [new file with mode: 0644]