From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29776 invoked by alias); 1 Mar 2005 12:13:31 -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 29756 invoked from network); 1 Mar 2005 12:13:26 -0000 Received: from unknown (HELO host15.apollohosting.com) (209.239.32.28) by sourceware.org with SMTP; 1 Mar 2005 12:13:26 -0000 Received: from mansoor ([202.141.233.154]) by host15.apollohosting.com (8.12.10/8.12.10) with ESMTP id j21CCt3V001281 for ; Tue, 1 Mar 2005 07:13:25 -0500 Subject: RE: Debugging the debugger From: Mansoor Ali Khan Reply-To: mkhan@hdaar.com To: gdb@sources.redhat.com In-Reply-To: <7F17177AC9AC2F4CB4A1A33C936D038D0723F4@nevismail01.pune.nevisnetworks.com> References: <7F17177AC9AC2F4CB4A1A33C936D038D0723F4@nevismail01.pune.nevisnetworks.com> Content-Type: text/plain Organization: Haval Daar Message-Id: <1109679215.12201.34.camel@mansoor> Mime-Version: 1.0 Date: Tue, 01 Mar 2005 12:13:00 -0000 Content-Transfer-Encoding: 7bit X-SW-Source: 2005-03/txt/msg00006.txt.bz2 Thanks Atul, Its exactly what u mentioned. I was using autoconf and was not aware of the fact that the AC_PROG_CC macro by default enables optimization. Mansoor. On Tue, 2005-03-01 at 16:24, Atul Talesara wrote: > > I want to get to the root of the problem. The problem is that when I > run > > my application through gdb, the program flow does not appear to be > > 'normal'. The same statement (line) keeps on repeating multiple times > > until it finally gets executed. > Best bet is that you have compiled your code with GCC > optimizations ON(-O1, -O2 or -O3). In which case this > apparently weird behaviour is completely normal. > > Regards, > Atul P Talesara > http://the-shaolin.blogspot.com/ > ---------------------------------------------------------- > You can tell more about a person by what he says about > others than you can by what others say about him. > > ---------------------------------------------------------- > >