Attaching to a program (Debugging with GDB)

From Get docs
Gdb/docs/latest/gdb/Attaching-to-a-program