This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
substitute-path problem
- From: Daniel Jacobowitz <drow at false dot org>
- To: gdb at sourceware dot org, Joel Brobecker <brobecker at adacore dot com>
- Date: Thu, 11 Jan 2007 21:51:49 -0500
- Subject: substitute-path problem
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