Files
libucore/test/backtrace.c
T
2012-11-15 18:26:31 +01:00

20 lines
302 B
C

#include <ucore/ucore_backtrace.h>
//note , compiling this without -rdynamic does not
//translate addresses to function names. Use the addr2line in that case
void func2(void)
{
uc_backtrace_fd(2);
}
void func1(void)
{
func2();
}
int main(int argc, char *argv[])
{
func1();
return;
}