From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17115 invoked by alias); 1 Mar 2005 11:58:09 -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 17088 invoked from network); 1 Mar 2005 11:58:04 -0000 Received: from unknown (HELO calvin.codito.co.in) (220.225.32.98) by sourceware.org with SMTP; 1 Mar 2005 11:58:04 -0000 Received: from [192.168.100.52] (ramana.codito.co.in [192.168.100.52]) by calvin.codito.co.in (8.12.10/8.12.10) with ESMTP id j21BvZBP010167; Tue, 1 Mar 2005 17:27:37 +0530 Message-ID: <422458B0.5040109@codito.com> Date: Tue, 01 Mar 2005 11:58:00 -0000 From: Ramana Radhakrishnan User-Agent: Mozilla Thunderbird 0.8 (X11/20040926) MIME-Version: 1.0 To: mkhan@hdaar.com CC: Atul Talesara , gdb@sources.redhat.com Subject: Re: Debugging the debugger References: <7F17177AC9AC2F4CB4A1A33C936D038D0723F4@nevismail01.pune.nevisnetworks.com> In-Reply-To: <7F17177AC9AC2F4CB4A1A33C936D038D0723F4@nevismail01.pune.nevisnetworks.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2005-03/txt/msg00005.txt.bz2 Hi Mansoor >>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. The usual reason is as mentioned by Atul in his mail. In addition it might be better if you posted a complete testcase for someone else to be able to reproduce the problem at their end. cheers Ramana -- Ramana Radhakrishnan GNU Tools codito ergo sum (www.codito.com)