From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32033 invoked by alias); 3 Mar 2010 16:08:50 -0000 Received: (qmail 31926 invoked by uid 22791); 3 Mar 2010 16:08:49 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (216.239.44.51) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 03 Mar 2010 16:08:44 +0000 Received: from kpbe11.cbf.corp.google.com (kpbe11.cbf.corp.google.com [172.25.105.75]) by smtp-out.google.com with ESMTP id o23G8grk018395 for ; Wed, 3 Mar 2010 08:08:42 -0800 Received: from fxm28 (fxm28.prod.google.com [10.184.13.28]) by kpbe11.cbf.corp.google.com with ESMTP id o23G8eA9006028 for ; Wed, 3 Mar 2010 10:08:41 -0600 Received: by fxm28 with SMTP id 28so914104fxm.19 for ; Wed, 03 Mar 2010 08:08:39 -0800 (PST) Received: by 10.223.143.21 with SMTP id s21mr8558274fau.51.1267632519650; Wed, 03 Mar 2010 08:08:39 -0800 (PST) Received: from coign.google.com ([67.218.106.224]) by mx.google.com with ESMTPS id 13sm9487092fks.30.2010.03.03.08.08.36 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 03 Mar 2010 08:08:38 -0800 (PST) To: Steve Teale Cc: gcc-help Subject: Re: Strange debug behavior with 4.4.3 References: <1267613238.12719.16.camel@Ubuntu> <1267631764.12719.27.camel@Ubuntu> From: Ian Lance Taylor Date: Wed, 03 Mar 2010 16:08:00 -0000 In-Reply-To: <1267631764.12719.27.camel@Ubuntu> (Steve Teale's message of "Wed\, 03 Mar 2010 18\:56\:04 +0300") Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-System-Of-Record: true X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2010-03/txt/msg00045.txt.bz2 Steve Teale writes: > On Wed, 2010-03-03 at 07:40 -0800, Ian Lance Taylor wrote: >> Steve Teale writes: >> >> > (gdb) n >> > 6313 input_location = EXPR_LOCATION (*expr_p); >> > (gdb) n >> > 6729 post_p == &internal_post ? NULL : post_p, >> > >> > Things go pear shaped after line 6312 - after that, next seems to get >> > you somewhere rather arbitrary. >> >> You are debugging optimized code. Random jumps do happen. You need >> to go further to see if there is a real problem here. >> >> Ian > > Ian, > > Go further? I mean: run the "n" command a few more times to see where you get to. > So should I build the compiler with no optimization? That is probably a good idea if you want to debug the compiler. Ian