Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* substitute-path problem
@ 2007-01-12  2:51 Daniel Jacobowitz
  2007-01-12  3:20 ` Joel Brobecker
  0 siblings, 1 reply; 5+ messages in thread
From: Daniel Jacobowitz @ 2007-01-12  2:51 UTC (permalink / raw)
  To: gdb, Joel Brobecker

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-01-12  3:29 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-01-12  2:51 substitute-path problem Daniel Jacobowitz
2007-01-12  3:20 ` Joel Brobecker
2007-01-12  3:22   ` Joel Brobecker
2007-01-12  3:24   ` Daniel Jacobowitz
2007-01-12  3:29     ` Joel Brobecker

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox