diff options
author | John Brawn <john.brawn@arm.com> | 2019-10-03 17:01:04 +0000 |
---|---|---|
committer | John Brawn <john.brawn@arm.com> | 2019-10-03 17:01:04 +0000 |
commit | 9caec0a1d2064a9f189f95f366c1249533c0a7a1 (patch) | |
tree | 286dfcf802f21e69d0222ab8f513af6e1dea1810 | |
parent | 6a94361a8e8cb40c5ad5b17a7d6dcaf5cc862b60 (diff) |
[libunwind] Adjust libunwind_01.pass.cpp test for ARM EHABI
ARM EHABI unwinding tables only store the start address of each function, so the
last function is assumed to cover the entire address space after it. The test
picks an address on the stack assuming that it's in no function, but because of
the above it's actually resolved to the last function. Fix this by using address
0 instead.
Differential Revision: https://reviews.llvm.org/D68387
git-svn-id: https://llvm.org/svn/llvm-project/libunwind/trunk@373628 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/libunwind_01.pass.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/libunwind_01.pass.cpp b/test/libunwind_01.pass.cpp index 830dcdd..db5d53d 100644 --- a/test/libunwind_01.pass.cpp +++ b/test/libunwind_01.pass.cpp @@ -48,7 +48,7 @@ void test_no_info() { abort(); // Set the IP to an address clearly outside any function. - unw_set_reg(&cursor, UNW_REG_IP, (unw_word_t)&context); + unw_set_reg(&cursor, UNW_REG_IP, (unw_word_t)0); ret = unw_get_proc_info(&cursor, &info); if (ret != UNW_ENOINFO) |