https://blog.dupidog.cn/posts/thread-aware-gdb-for-linux-kernel/
Debugging the linux kernel using thread-aware of gdb - dupidog's blog