From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 709 invoked by alias); 6 Jan 2010 16:38:13 -0000 Received: (qmail 701 invoked by uid 22791); 6 Jan 2010 16:38:12 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from mel.act-europe.fr (HELO mel.act-europe.fr) (212.99.106.210) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 06 Jan 2010 16:38:08 +0000 Received: from localhost (localhost [127.0.0.1]) by filtered-smtp.eu.adacore.com (Postfix) with ESMTP id A8732CB01F8; Wed, 6 Jan 2010 17:38:06 +0100 (CET) Received: from mel.act-europe.fr ([127.0.0.1]) by localhost (smtp.eu.adacore.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id eveTwf10kdi0; Wed, 6 Jan 2010 17:38:06 +0100 (CET) Received: from ulanbator.act-europe.fr (ulanbator.act-europe.fr [10.10.1.67]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by mel.act-europe.fr (Postfix) with ESMTP id 93D83CB016C; Wed, 6 Jan 2010 17:38:06 +0100 (CET) Subject: Re: Regression on prelinked-sepdebug-shlibs Mime-Version: 1.0 (Apple Message framework v1077) Content-Type: text/plain; charset=us-ascii From: Tristan Gingold In-Reply-To: <20091225200440.GA3747@host0.dyn.jankratochvil.net> Date: Wed, 06 Jan 2010 16:38:00 -0000 Cc: gdb-patches@sourceware.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <20091225200440.GA3747@host0.dyn.jankratochvil.net> To: Jan Kratochvil 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: 2010-01/txt/msg00115.txt.bz2 Jan, do you have a patch for dwarf2read.c(dwarf2_psymtab_to_symtab) ? /* If this psymtab is constructed from a debug-only objfile, the has_section_at_zero flag will not necessarily be correct. We can get the correct value for this flag by looking at the data associated with the (presumably stripped) associated objfile. */ if (pst->objfile->separate_debug_objfile_backlink) { struct dwarf2_per_objfile *dpo_backlink =3D objfile_data (pst->objfile->separate_debug_objfile_backlink, dwarf2_objfile_data_key); dwarf2_per_objfile->has_section_at_zero =3D dpo_backlink->has_section_at_zero; } I think this is not correct: the separate debug file may have one section a= t zero while the main may not. In the above code, we do not consider wether an offset is used. I am not sure that this can happen with ELF however. Tristan.