Logan Chien | 4600418 | 2015-06-25 15:12:46 +0000 | [diff] [blame] | 1 | #include <assert.h> |
2 | #include <libunwind.h> | ||||
3 | |||||
Louis Dionne | cbfe017 | 2020-10-08 13:36:33 -0400 | [diff] [blame] | 4 | int main(int, char**) { |
Logan Chien | 4600418 | 2015-06-25 15:12:46 +0000 | [diff] [blame] | 5 | unw_context_t context; |
6 | int ret = unw_getcontext(&context); | ||||
7 | assert(ret == UNW_ESUCCESS); | ||||
Louis Dionne | cbfe017 | 2020-10-08 13:36:33 -0400 | [diff] [blame] | 8 | return 0; |
Logan Chien | 4600418 | 2015-06-25 15:12:46 +0000 | [diff] [blame] | 9 | } |