Threads I
Which
threads are available
(gdb)info threads
Switch to a thread with id X
(gdb)thread <id>
Set a thread specific breakpoint
(gdb)break <location> thread <id>
Threads II
Switch of scheduler during single stepping
(gdb) set scheduler-locking <on|off>
Stop only one thread, let the other's continue
(gdb) set target-async 1
(gdb) set pagination off
(gdb) set non-stop on