I am trying to attach GDB to a running process and but am getting the below error.
/sysdeps/unix/sysv/linux/read.c: No such file or directory.
Code compiled with gcc
as so, gcc -ggdb -o OutputFile InputFile
.
The command I am running is gdb Program pid
.
So far as I can tell from other posts this is the correct command.
I get a confirmation of sorts from GDB with this line, Attaching to program: /path/to/file
.
Do I need to specify the path to the underlying C
files somehow?
Running this on Debian 4.17.8-1kali1