How can I disable new thread/thread exited messages in gdb?

Solution 1:

You can turn off thread events while running gdb:

set print thread-events off