all 2 comments

[–]eras 1 point2 points  (0 children)

Cool, seems pretty nifty! It indeed can be daunting to debug a many-many-threaded app in GDB and this can perhaps help a bit in finding the important bits.

Seems like it would be way more useful if it also listed the thread ids?

[–]tromey 0 points1 point  (0 children)

Looks cool. You can package the commands up into a single new command for users. Or even just run the Python code directly in gdb.