@j3s
$ sudo gdb -p <pid>
and it works for me
Linux Manjaro