From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8430 invoked by alias); 14 May 2012 14:52:30 -0000 Received: (qmail 8415 invoked by uid 22791); 14 May 2012 14:52:29 -0000 X-SWARE-Spam-Status: No, hits=-6.1 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,TW_BJ,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 14 May 2012 14:52:12 +0000 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q4EEptSN006625 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 14 May 2012 10:51:55 -0400 Received: from host2.jankratochvil.net (ovpn-116-17.ams2.redhat.com [10.36.116.17]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q4EEpp6d002651 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Mon, 14 May 2012 10:51:54 -0400 Date: Mon, 14 May 2012 14:52:00 -0000 From: Jan Kratochvil To: Joel Brobecker Cc: Tom Tromey , gdb-patches@sourceware.org Subject: Re: Regression for gdb.fortran/library-module.exp [Re: [RFA] choose symbol from given block's objfile first.] Message-ID: <20120514145151.GA30451@host2.jankratochvil.net> References: <1336430581-11262-1-git-send-email-brobecker@adacore.com> <874nrqvbeh.fsf@fleche.redhat.com> <20120509190529.GI15555@adacore.com> <20120511072606.GA25458@host2.jankratochvil.net> <20120514143927.GB10253@adacore.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20120514143927.GB10253@adacore.com> User-Agent: Mutt/1.5.21 (2010-09-15) 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: 2012-05/txt/msg00509.txt.bz2 Hi Joel, On Mon, 14 May 2012 16:39:27 +0200, Joel Brobecker wrote: > (2) Conditionalize my patch on the current language. If the current > language is Fortran, then loop over the objfiles as before. Please no Fortran exceptions. GDB is buggy even for plain C, see: Copy-Relocate debug error http://sourceware.org/ml/gdb/2012-01/msg00120.html I can look at it myself but only later this week. > There is an intermediate solution, which is to always search the > main objfile first, and then the current DSO, and then the rest. Some such order may be what ld.so does for the symbol search which should be the real right solution. Except for that there is probably wrong debug info in some cases from GCC and (a) I believe GDB should try to be compatible with current widespread buggy GCC debug info, (b) We may try to propose fixing the GCC produced debug info but I have no idea how yet, some such possibilities were described in http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40040 Thanks, Jan