[Converted from Gnats 1747] Hello, gdb looks for a source file in the directory '$cdir' if the source had been compiled with an absolute path and was not found there. IOW, $cdir (which is always in the source directory path) does not get expanded. With kind regards, Baurjan. Release: 2004-08-11-cvs How-To-Repeat: mkdir '$cdir' echo "main(){}" >/tmp/a.c gcc -g -o /tmp/a /tmp/a.c mv /tmp/a.c '$cdir' strace -e trace=open gdb /tmp/a l main
I can't recreate this in gdb 7.1. If it was a problem, it's since been fixed.