mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-29 13:09:28 +00:00
549d405877
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
9 lines
153 B
C++
9 lines
153 B
C++
#include <assert.h>
|
|
#include <libunwind.h>
|
|
|
|
int main() {
|
|
unw_context_t context;
|
|
int ret = unw_getcontext(&context);
|
|
assert(ret == UNW_ESUCCESS);
|
|
}
|