From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 916 invoked by alias); 3 Jul 2002 16:29:17 -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 909 invoked from network); 3 Jul 2002 16:29:16 -0000 Received: from unknown (HELO mail.alinoe.com) (24.132.80.10) by sources.redhat.com with SMTP; 3 Jul 2002 16:29:16 -0000 Received: (qmail 2679 invoked by uid 500); 3 Jul 2002 16:29:13 -0000 Date: Wed, 03 Jul 2002 09:29:00 -0000 From: Carlo Wood To: Bernd Jendrissek Cc: gdb@sources.redhat.com Subject: Re: Who's insane: gdb or I? Message-ID: <20020703182913.A21954@alinoe.com> References: <20020703151547.A28413@prism.co.za> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20020703151547.A28413@prism.co.za>; from berndj@prism.co.za on Wed, Jul 03, 2002 at 03:15:47PM +0200 X-SW-Source: 2002-07/txt/msg00033.txt.bz2 On Wed, Jul 03, 2002 at 03:15:47PM +0200, Bernd Jendrissek wrote: > 1083 OVERtime+=(etv.tv_sec - stv.tv_sec) * 1000; > (gdb) s > 1084 OVERtime+=(etv.tv_usec - stv.tv_usec) / 1000; > (gdb) s > 1083 OVERtime+=(etv.tv_sec - stv.tv_sec) * 1000; > (gdb) s > 1084 OVERtime+=(etv.tv_usec - stv.tv_usec) / 1000; Which compiler version are you using? Can you show the *.s file of this part that is being generated? (Add -save-temps to the gcc/g++ line that generates the *.o file; it will also generate a *.s file then). Does the same thing happen when you use -gstabs or -gdwarf-2 instead of just -g? -- Carlo Wood