This is the mail archive of the
mailing list for the GDB project.
Finding absolute path from relative.
- From: Bob Rossi <bob at brasko dot net>
- To: gdb at sources dot redhat dot com
- Date: Sun, 28 Sep 2003 22:21:28 -0400
- Subject: Finding absolute path from relative.
I am thinking about the algorithm required to find the absolute path to
a source file given the relative path and the output from 'show dir'.
Is it really as easy as this,
for I in 'show dir' # for each directory in show dir
if $I/relative_path exists
break; # Found absolute path.
Or does it get more complex and obfuscated?