substitute-path problem

Daniel Jacobowitz
2007-01-12T02:51:57Z

I was hoping substitute-path would come in handy today, but I couldn't
get it to work. Here is the problem:

if (dirname != NULL)
{
/* If necessary, rewrite the compilation directory name according
to the source path substitution rules specified by the user. */

char *rewritten_dirname = rewrite_source_path (dirname);

But:

Breakpoint 3, find_and_open_source (objfile=0x8aa2f0,
filename=0x9892d0 "/full/path/to/file.c", dirname=0x0,
fullname=0x9892c0) at /space/fsf/commit/src/gdb/source.c:952

I suspect compiling the file with a full path on the gcc command line
would reproduce this. Do you think we're applying the substitution
rule in the wrong place?

--
Daniel Jacobowitz
CodeSourcery