From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26834 invoked by alias); 15 Mar 2007 02:27:57 -0000 Received: (qmail 26825 invoked by uid 22791); 15 Mar 2007 02:27:56 -0000 X-Spam-Check-By: sourceware.org Received: from return.false.org (HELO return.false.org) (66.207.162.98) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 15 Mar 2007 02:27:48 +0000 Received: from return.false.org (localhost [127.0.0.1]) by return.false.org (Postfix) with ESMTP id 62B8D4B267; Wed, 14 Mar 2007 21:27:46 -0500 (CDT) Received: from caradoc.them.org (dsl093-172-095.pit1.dsl.speakeasy.net [66.93.172.95]) by return.false.org (Postfix) with ESMTP id 7DC484B262; Wed, 14 Mar 2007 21:27:45 -0500 (CDT) Received: from drow by caradoc.them.org with local (Exim 4.63) (envelope-from ) id 1HRfgq-0002Va-R2; Wed, 14 Mar 2007 22:27:40 -0400 Date: Thu, 15 Mar 2007 02:27:00 -0000 From: Daniel Jacobowitz To: Maxim Grigoriev Cc: gdb-patches@sources.redhat.com Subject: Re: Handling corner case in building symbol table when "debug_line" includes compilation directory Message-ID: <20070315022735.GA9613@caradoc.them.org> Mail-Followup-To: Maxim Grigoriev , gdb-patches@sources.redhat.com References: <45F8A771.2060008@hq.tensilica.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <45F8A771.2060008@hq.tensilica.com> User-Agent: Mutt/1.5.14+cvs20070313 (2007-03-13) 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-03/txt/msg00141.txt.bz2 On Wed, Mar 14, 2007 at 06:54:57PM -0700, Maxim Grigoriev wrote: > Hello All, > Tensilica compiler seems to provide a unique approach in building DWARF > line tables. It confuses GDB algorithms being used to build symbol tables. > First in DW_TAG_compile_unit entry > DW_AT_name is a source file name as it was used in a command line; > DW_AT_comp_dir is a full path name to a compilation directory; > Then in the statement program prologue, the directory table includes at > least one entry, which is again the compilation directory. And, there is > a corresponding file table entry referencing to this directory. > Assuming that this combination of the names of the directories and files > does not contradict DWARF standard, I think GDB has to handle this situation. > I suggest the following patch to fix this problem: First of all, your mailer ate whitespace in the patch again - very hard to read. Unfortunately, I do not understand your description. Could you show me an example? -- Daniel Jacobowitz CodeSourcery