From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12746 invoked by alias); 24 Jul 2003 14:39:22 -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 12736 invoked from network); 24 Jul 2003 14:39:21 -0000 Received: from unknown (HELO mail.drexel.edu) (144.118.25.40) by sources.redhat.com with SMTP; 24 Jul 2003 14:39:21 -0000 Received: from shim2.irt.drexel.edu (shim2.irt.drexel.edu [144.118.25.82]) by mail.drexel.edu (Sun Internet Mail Server sims.4.0.2001.07.26.11.50.p9) with ESMTP id <0HIJ000PQA1IJJ@mail.drexel.edu> for gdb@sources.redhat.com; Thu, 24 Jul 2003 10:39:18 -0400 (EDT) Received: from conversion-daemon.shim2.irt.drexel.edu by shim2.irt.drexel.edu (iPlanet Messaging Server 5.2 HotFix 1.17 (built Jun 23 2003)) id <0HIJ00B019YC6X@shim2.irt.drexel.edu>; Thu, 24 Jul 2003 10:39:18 -0400 (EDT) Received: from glue.irt.drexel.edu (glue.irt.drexel.edu [144.118.25.22]) by shim2.irt.drexel.edu (iPlanet Messaging Server 5.2 HotFix 1.17 (built Jun 23 2003)) with ESMTP id <0HIJ00580A1HI7@shim2.irt.drexel.edu>; Thu, 24 Jul 2003 10:39:17 -0400 (EDT) Received: from drexel.edu ([63.97.186.231]) (authenticated) by glue.irt.drexel.edu (8.11.3/8.11.3) with ESMTP id h6OEdHN21923; Thu, 24 Jul 2003 10:39:17 -0400 (EDT) Date: Thu, 24 Jul 2003 14:39:00 -0000 From: Nikola Kolev Subject: Re: gdb shows source line multiple times before executing !! In-reply-to: To: mohanlal jangir Cc: gdb@sources.redhat.com Message-id: <3F1FEF06.20507@drexel.edu> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii; format=flowed Content-transfer-encoding: 7BIT X-Accept-Language: en-us, en User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 References: X-SW-Source: 2003-07/txt/msg00296.txt.bz2 the executable is probably optimized (gcc/g++ -O2 ...) mohanlal jangir wrote: >While single stepping with gdb, quite frequently I see sorce lines appearing >multiple times i.e. gdb shows some line that will be executed on command >"next", but that is actully not. After next "next" command, I see same line >appearing. This happens two or three times and then finally that line is >executed. > >gdb --version command gives following output: >GNU gdb Red Hat Linux 7.x (5.0rh-15) (MI_OUT) >Copyright 2001 Free Software Foundation, Inc. >GDB is free software, covered by the GNU General Public License, and you are >welcome to change it and/or distribute copies of it under certain >conditions. >Type "show copying" to see the conditions. >There is absolutely no warranty for GDB. Type "show warranty" for details. >This GDB was configured as "i386-redhat-linux". > > >Regards >Mohanlal > > >