From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3079 invoked by alias); 3 Jul 2002 13:24:34 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 3055 invoked from network); 3 Jul 2002 13:24:28 -0000 Received: from unknown (HELO is.elta.co.il) (199.203.121.2) by sources.redhat.com with SMTP; 3 Jul 2002 13:24:28 -0000 Received: from is (is [199.203.121.2]) by is.elta.co.il (8.9.3/8.8.8) with SMTP id QAA22970; Wed, 3 Jul 2002 16:22:05 +0300 (IDT) Date: Wed, 03 Jul 2002 06:24:00 -0000 From: Eli Zaretskii X-Sender: eliz@is To: Bernd Jendrissek cc: gdb@sources.redhat.com Subject: Re: Who's insane: gdb or I? In-Reply-To: <20020703151547.A28413@prism.co.za> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SW-Source: 2002-07/txt/msg00029.txt.bz2 On Wed, 3 Jul 2002, Bernd Jendrissek wrote: > Why did gdb tell me that the "OVERtime+=..." part happened several times > over? Because compiler optimizations move code around, so that the machine instructions generated for those two lines are interleaved. Simply get used to this. I usually wait until the line shjown by GDB is after the one I'm interested in, and then print the relevant variables.