From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22825 invoked by alias); 12 Jan 2007 02:51:57 -0000 Received: (qmail 22813 invoked by uid 22791); 12 Jan 2007 02:51:56 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Fri, 12 Jan 2007 02:51:52 +0000 Received: from drow by nevyn.them.org with local (Exim 4.63) (envelope-from ) id 1H5CWD-0001zI-Qo; Thu, 11 Jan 2007 21:51:49 -0500 Date: Fri, 12 Jan 2007 02:51:00 -0000 From: Daniel Jacobowitz To: gdb@sourceware.org, Joel Brobecker Subject: substitute-path problem Message-ID: <20070112025149.GA7621@nevyn.them.org> Mail-Followup-To: gdb@sourceware.org, Joel Brobecker MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.13 (2006-08-11) X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2007-01/txt/msg00199.txt.bz2 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