This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Loop over threads in python
- From: Dov Grobgeld <dov dot grobgeld at gmail dot com>
- To: gdb at sourceware dot org
- Date: Mon, 4 Jun 2012 09:40:30 +0300
- Subject: Loop over threads in python
- References: <CA++fsGEES6rmeqWK9C5nyKH30+agT5ie+cY5tXMKpCx_0Cokhg@mail.gmail.com>
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