Is there a way to print stacktrace of all threads without attaching GDB?
Or is there a command which I can use as gdb batch mode to print stacktrace of all threads?
pstack?
Usage:
pstack
From the man page:
pstack - print a stack trace of a running process ... If the process is part of a thread group, then pstack will print out a stack trace for each of the threads in the group.