Ptrace in the kernel function

We have a CUDA Debugger API defined that provides the capabilities to debug applications running on the GPU. It is defined here: Debugger API :: CUDA Toolkit Documentation

For cuda-gdb, we don’t make calls/link directly to this API. Instead we communicate with the driver through an RPC like interface defined by cudbgprocess.