Subj : Re: pthreads (linux) questions To : comp.programming.threads From : David Schwartz Date : Sun Aug 21 2005 11:22 pm "jacob navia" wrote in message news:430593f2$0$3114$8fcfb975@news.wanadoo.fr... > Again: > Under 32 bits I used those symbols in the pthread library > to get info about the running threads. > I would attach to each thread in turn, and using ptrace I would read > their descriptors, what allowed me to print the state of each > thread at the moment of the crash. > > How do I do that under 64 bits? Fork/exec a copy of 'gdb', attach it to your process, and execute the appropriate commands to dump the stack of every thread. You could, alternatively, use the same method 'gdb' uses. I believe it attaches to a library that tells it how to understand the threads layout of the processes it accahes to. DS .