I want to do stack unwinding using gcc. I can not find an example code that shows me how to do this.
I tried to follow the instructions from this site, but i realised that the unwind.h
that my gcc is using is different. for example instead of unw_word_t
I have _Unwind_Word
. I don't know what I should use instead of unw_getcontext()
and unw_init_local()
.
my unwind.h
is similar to http://www.opensource.apple.com/source/gcc/gcc-5482/gcc/unwind.h
can anyone please give me a link to an example code to use this library?