From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8865 invoked by alias); 8 Jan 2008 21:24:15 -0000 Received: (qmail 8850 invoked by uid 22791); 8 Jan 2008 21:24:13 -0000 X-Spam-Check-By: sourceware.org Received: from qnxmail.qnx.com (HELO nimbus.ott.qnx.com) (209.226.137.76) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 08 Jan 2008 21:23:44 +0000 Received: by nimbus.ott.qnx.com with Internet Mail Service (5.5.2653.19) id ; Tue, 8 Jan 2008 16:23:41 -0500 Message-ID: <2F6320727174C448A52CEB63D85D11F40A6F@nova.ott.qnx.com> From: Aleksandar Ristovski To: Daniel Jacobowitz Cc: dje@google.com, gdb-patches@sourceware.org, Ryan Mansfield Subject: RE: [RFA] patch for DW_AT_comp_dir/DW_AT_name vs .debug_line inco nsistencies Date: Tue, 08 Jan 2008 21:24:00 -0000 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain 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/msg00163.txt.bz2 > > Aha! Thanks for checking, that looks much more promising. But it won't go away... Dwarf3 spec (December 20, 2007), page 38, points 2. and 6.: 2. A DW_AT_name attribute whose value is a null-terminated string containing the full or relative path name of the primary source file from which the compilation unit was derived. .... 6. A DW_AT_comp_dir attribute whose value is a null-terminated string containing the current working directory of the compilation command that produced this compilation unit in whatever form makes sense for the host system. The suggested form for the value of the DW_AT_comp_dir attribute on UNIX systems is "hostname:pathname". If no hostname is available, the suggested form is ":pathname". (I find this 'suggested form' particularly scary). Dwarf2 spec (Industry Review Draft, Revision: 2.0.0, July 27, 1993) specifies exactly the same. I don't know how do you interpret this, but I would say the output from my example produced by 3.3.5 is also correct.