Loop over threads in python

Dov Grobgeld dov.grobgeld@gmail.com
Mon Jun 4 06:40:00 GMT 2012


Hello,

I would like to write a python command that lists all threads (of a
C++ program) that in its call path has a function matching a user
specified pattern.

To do that I have to iterate over all the threads. But I couldn't find
such a python API. Do I currently have to resort to using gdb commands
and parsing the output myself?

Thanks!
Dov



More information about the Gdb mailing list