On Thu, Jul 22, 2010 at 12:12 PM, Sven Neumann <[email protected]> wrote:
> Hello,
>
> How would I go about getting backtraces for all the threads in an
> application? I understand how to do this for the current thread using
> unw_init_local(). But how can I access the instruction pointers of the
> other threads?
>

This is orthogonal to libunwind. One strategy is to send a signal to
every thread in the process and have that thread report its own stack
trace.

Trying to stop and access another thread in the same process is full
of traps that lead to deadlocks in one form or another.

 -Arun

_______________________________________________
Libunwind-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/libunwind-devel

Reply via email to