From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16656 invoked by alias); 6 Aug 2010 18:43:53 -0000 Received: (qmail 16631 invoked by uid 22791); 6 Aug 2010 18:43:51 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE X-Spam-Check-By: sourceware.org Received: from mail-iw0-f169.google.com (HELO mail-iw0-f169.google.com) (209.85.214.169) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 06 Aug 2010 18:43:47 +0000 Received: by iwn10 with SMTP id 10so1872206iwn.0 for ; Fri, 06 Aug 2010 11:43:45 -0700 (PDT) MIME-Version: 1.0 Received: by 10.231.190.74 with SMTP id dh10mr14593638ibb.43.1281120223412; Fri, 06 Aug 2010 11:43:43 -0700 (PDT) Received: by 10.231.199.134 with HTTP; Fri, 6 Aug 2010 11:43:43 -0700 (PDT) In-Reply-To: References: <4C5C4433.60302@gmail.com> <4C5C453D.4090704@caviumnetworks.com> <4C5C4B8A.7090303@gmail.com> Date: Fri, 06 Aug 2010 18:43:00 -0000 Message-ID: Subject: Re: Bizarre GCC problem - how do I debug it? From: Richard Guenther To: Tom Tromey Cc: Bruce Korb , David Daney , gcc@gcc.gnu.org, bug-gdb@gnu.org, insight@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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/msg00023.txt.bz2 On Fri, Aug 6, 2010 at 8:41 PM, Tom Tromey wrote: >>>>>> "Bruce" =3D=3D Bruce Korb writes: > > Bruce> That seems to work. =A0There 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. =A0They are fixed. > > I think the situation is better in newer versions of GDB. =A0We've fixed a > lot of bugs, anyway. =A0(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. =A0GDB 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. =A0It 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. =A0We've > done a lot of work in GDB to catch up with GCC's changing output. =A0The > development process here is actually reasonably well synchronized. The gdb version on openSUSE that ship with GCC 4.5 is perfectly fine (it's 7.1 based). No idea what the reporter is talking about (we don't ship insight IIRC). Richard. > Tom >