Bug 8852 - gdb looks for a file in (literally) $cdir
Summary: gdb looks for a file in (literally) $cdir
Status: RESOLVED WORKSFORME
Alias: None
Product: gdb
Classification: Unclassified
Component: gdb (show other bugs)
Version: unknown
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-13 15:58 UTC by Baurzhan Ismagulov
Modified: 2010-04-08 18:04 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Baurzhan Ismagulov 2004-08-13 15:58:01 UTC
[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
Comment 1 dje 2010-04-08 18:04:50 UTC
I can't recreate this in gdb 7.1.
If it was a problem, it's since been fixed.