Hi, > unw_step(&cursor) return 0, and all my previous steps are successful. That > means my cursor is at last frame in the stack and I can’t walk through it? > But why I am getting at the last frame in the stack all the time and I am not > able to walk full stack because of it.
Build a debug version of libunwind (configure ... --enable-debug), then set "UNW_DEBUG_LEVEL=5" environment variable, and re-run your program. The debug informations should help you determine why libunwind decided to stop the trace. I personally know approximately nothing about unwinding with ptrace, let alone unwinding random other threads in other processes. But if you attach some debug output, others may be able to help. Regards, Lassi _______________________________________________ Libunwind-devel mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/libunwind-devel
