This is the mail archive of the
gdb-prs@sources.redhat.com
mailing list for the GDB project.
gdb/1747: gdb looks for a file in (literally) $cdir
- From: ibr at ata dot cs dot hun dot edu dot tr
- To: gdb-gnats at sources dot redhat dot com
- Date: 13 Aug 2004 15:53:21 -0000
- Subject: gdb/1747: gdb looks for a file in (literally) $cdir
- Reply-to: ibr at ata dot cs dot hun dot edu dot tr
>Number: 1747
>Category: gdb
>Synopsis: gdb looks for a file in (literally) $cdir
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Aug 13 15:58:01 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator: ibr@ata.cs.hun.edu.tr
>Release: 2004-08-11-cvs
>Organization:
>Environment:
>Description:
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.
>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
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: