forked from OSchip/llvm-project
[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 llvm-svn: 373628
This commit is contained in:
parent
b01ebd6c1d
commit
b44204c77e
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue