Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@false.org>
To: gdb@sourceware.org, Joel Brobecker <brobecker@adacore.com>
Subject: substitute-path problem
Date: Fri, 12 Jan 2007 02:51:00 -0000	[thread overview]
Message-ID: <20070112025149.GA7621@nevyn.them.org> (raw)

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


             reply	other threads:[~2007-01-12  2:51 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-12  2:51 Daniel Jacobowitz [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070112025149.GA7621@nevyn.them.org \
    --to=drow@false.org \
    --cc=brobecker@adacore.com \
    --cc=gdb@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox