I set a breakpoint in a multi-threaded inferior. Any of the threads could hit the breakpoint. When the breakpoint is hit, I would like to have gdb switch to the thread that hit it.
Currently, I'm notified that bp is hit. Then I have to look at the top stack frame of every thread to know which one it was, like so:
(gdb) info threads
(gdb) thread apply all bt 1 full
(gdb) thread 2
I'd like this switching to be automatic.