From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15162 invoked by alias); 6 Aug 2010 18:42:07 -0000 Received: (qmail 15012 invoked by uid 22791); 6 Aug 2010 18:42:06 -0000 X-SWARE-Spam-Status: No, hits=-6.1 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,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; Fri, 06 Aug 2010 18:42:04 +0000 Received: from int-mx08.intmail.prod.int.phx2.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o76IfrHC008234 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 6 Aug 2010 14:41:53 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx08.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o76IfqKl017954; Fri, 6 Aug 2010 14:41:53 -0400 Received: from opsy.redhat.com (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id o76IfqDK021108; Fri, 6 Aug 2010 14:41:52 -0400 Received: by opsy.redhat.com (Postfix, from userid 500) id BC30F3782ED; Fri, 6 Aug 2010 12:41:51 -0600 (MDT) From: Tom Tromey To: Bruce Korb Cc: David Daney , gcc@gcc.gnu.org, bug-gdb@gnu.org, insight@sourceware.org Subject: Re: Bizarre GCC problem - how do I debug it? References: <4C5C4433.60302@gmail.com> <4C5C453D.4090704@caviumnetworks.com> <4C5C4B8A.7090303@gmail.com> Date: Fri, 06 Aug 2010 18:42:00 -0000 In-Reply-To: <4C5C4B8A.7090303@gmail.com> (Bruce Korb's message of "Fri, 06 Aug 2010 10:51:06 -0700") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-IsSubscribed: yes Mailing-List: contact insight-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: insight-owner@sourceware.org X-SW-Source: 2010-q3/txt/msg00022.txt.bz2 >>>>> "Bruce" == Bruce Korb writes: Bruce> That seems to work. There are one or two or three bugs then. Bruce> Either gdb needs to recognize an out of sync object code, or else Bruce> gcc needs to produce object code that forces gdb to object in a way Bruce> more obvious than just deciding upon the wrong file and line -- Bruce> or both. Nothing can be done about old versions of gdb. They are fixed. I think the situation is better in newer versions of GDB. We've fixed a lot of bugs, anyway. (I'm not sure exactly what problem you hit, so I don't know if gdb is in fact any more future-proof in that area.) I don't think things can ever be perfect. GDB checks the various DWARF version numbers, but that doesn't exclude extensions. Bruce> I simply installed the latest openSuSE and got whatever was Bruce> supplied. It isn't reasonable to expect folks to go traipsing Bruce> through upstream web sites looking for "changes.html" files .... In a situation like this, I suggest complaining to your vendor. We've done a lot of work in GDB to catch up with GCC's changing output. The development process here is actually reasonably well synchronized. Tom