This is the mail archive of the gdb-prs@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

gdb/1747: gdb looks for a file in (literally) $cdir


>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:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]