From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29236 invoked by alias); 20 Dec 2007 19:49:56 -0000 Received: (qmail 29228 invoked by uid 22791); 20 Dec 2007 19:49:56 -0000 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 20 Dec 2007 19:49:48 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id BDC1E98151; Thu, 20 Dec 2007 19:49:46 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id 9491598150; Thu, 20 Dec 2007 19:49:46 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.68) (envelope-from ) id 1J5ROr-0007Ql-In; Thu, 20 Dec 2007 14:49:45 -0500 Date: Thu, 20 Dec 2007 20:23:00 -0000 From: Daniel Jacobowitz To: Doug Evans Cc: gdb-patches@sourceware.org Subject: Re: RFC: example fix to pr 2360 Message-ID: <20071220194945.GA28256@caradoc.them.org> Mail-Followup-To: Doug Evans , gdb-patches@sourceware.org References: <20071217000136.GA9212@caradoc.them.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-12-11) X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2007-12/txt/msg00353.txt.bz2 On Thu, Dec 20, 2007 at 11:37:13AM -0800, Doug Evans wrote: > On Dec 16, 2007 4:01 PM, Daniel Jacobowitz wrote: > > Are there any examples of this without #line? > > Thanks for the review. I'm not aware of any examples without #line. > > While dwarf doesn't understand inodes the paths do have some canonical > behaviour. e.g. As I understand it, posix says //tmp/foo == /tmp/foo. > I recognize the paths are from the compilation host not the debug > host, we could write a path canonicalizer. Actually, I believe this is one of the few places where / and // are separate, and POSIX allows //tmp to be different from /tmp. /tmp//foo is another story. > But no matter, I can certainly pursue a different fix for the problem > at hand, perhaps by adding an option to gcc to set DW_AT_comp_dir. Does -fworking-directory help? That's the default if you preprocess with -g, if I understand correctly. -- Daniel Jacobowitz CodeSourcery