From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5982 invoked by alias); 8 Jan 2008 17:33:07 -0000 Received: (qmail 5974 invoked by uid 22791); 8 Jan 2008 17:33:06 -0000 X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (216.239.33.17) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 08 Jan 2008 17:32:49 +0000 Received: from zps35.corp.google.com (zps35.corp.google.com [172.25.146.35]) by smtp-out.google.com with ESMTP id m08HWf1R010589 for ; Tue, 8 Jan 2008 17:32:42 GMT Received: from nz-out-0506.google.com (nzes18.prod.google.com [10.36.170.18]) by zps35.corp.google.com with ESMTP id m08HWZ8U013424 for ; Tue, 8 Jan 2008 09:32:41 -0800 Received: by nz-out-0506.google.com with SMTP id s18so1873677nze.1 for ; Tue, 08 Jan 2008 09:32:40 -0800 (PST) Received: by 10.114.157.1 with SMTP id f1mr7691340wae.13.1199813560766; Tue, 08 Jan 2008 09:32:40 -0800 (PST) Received: by 10.115.107.7 with HTTP; Tue, 8 Jan 2008 09:32:40 -0800 (PST) Message-ID: Date: Tue, 08 Jan 2008 17:33:00 -0000 From: "Doug Evans" To: "Aleksandar Ristovski" Subject: Re: [RFA] patch for DW_AT_comp_dir/DW_AT_name vs .debug_line inco nsistencies Cc: gdb-patches@sourceware.org In-Reply-To: <2F6320727174C448A52CEB63D85D11F40A5E@nova.ott.qnx.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <2F6320727174C448A52CEB63D85D11F40A5E@nova.ott.qnx.com> 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: 2008-01/txt/msg00148.txt.bz2 On Jan 8, 2008 8:09 AM, Aleksandar Ristovski wrote: > About normalize_path: I am really missing how would symlink spoil anything. As a data point, here is an example that doesn't use #line, uses present day gcc, and would cause bad behaviour in gdb if normalize_path was indescriminately used. To what extent the example is contrived and wouldn't occur in practice I don't know. [The use of an obj directory here isn't important, it's just a turd from various experiments.] rm -rf /tmp/foo mkdir -p /tmp/foo cd /tmp/foo mkdir -p a/b ln -s a/b t mkdir obj cat >a/foo.c <a/b/foo.c <foo.c <foo.w >From foo.w: DW_AT_name : /tmp/foo/foo.c The Directory Table: /tmp/foo/t /tmp/foo /tmp/foo/t/.. The File Name Table: Entry Dir Time Size Name 1 1 0 0 foo.c 2 2 0 0 foo.c 3 3 0 0 foo.c