Debugging a translator. gdb binary. set noninvasive on. attach [PID]. Translator does some work. GDB doesn't notice new threads. detach. attach [PID] -- now new threads are visible.