gdb: fix thread debugging
Merge pull request #2543 from susisstrolch/gbd-thread_debugging

gdb: fix thread debugging