How to attach a process in gdb February 6, 2023 by Tarik Try one of these: gdb -p 12271 gdb /path/to/exe 12271 gdb /path/to/exe (gdb) attach 12271