From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15259 invoked by alias); 27 Sep 2007 13:49:36 -0000 Received: (qmail 15244 invoked by uid 22791); 27 Sep 2007 13:49:35 -0000 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 27 Sep 2007 13:49:32 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id A044B9832A; Thu, 27 Sep 2007 13:49:30 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id 83FF79829E; Thu, 27 Sep 2007 13:49:30 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.67) (envelope-from ) id 1Iatk9-00006P-NE; Thu, 27 Sep 2007 09:49:29 -0400 Date: Thu, 27 Sep 2007 15:34:00 -0000 From: Daniel Jacobowitz To: Bhushan Attarde Cc: gdb@sourceware.org Subject: Re: error message : I'm sorry, Dave, I can't dothat.Symbolformat'elf32-xc16x' unknown. Message-ID: <20070927134929.GA32721@caradoc.them.org> Mail-Followup-To: Bhushan Attarde , gdb@sourceware.org References: <20070927124403.GA29229@caradoc.them.org> <7B5265FF85A78C4BB9DAD0EE699C476002C01DE0@sohm.kpit.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7B5265FF85A78C4BB9DAD0EE699C476002C01DE0@sohm.kpit.com> User-Agent: Mutt/1.5.15 (2007-04-09) X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2007-09/txt/msg00233.txt.bz2 On Thu, Sep 27, 2007 at 07:14:59PM +0530, Bhushan Attarde wrote: > my question is why the for loop has executed 2 times ? > I mean to say once it has found > "(our flavour== sf->sym_flavour)" and returning "sf" for 1st time again > the loop is executed one more time to return the same. Use GDB to answer this question, of course. Set a breakpoint on find_syms_fn and backtrace every time it's hit. -- Daniel Jacobowitz CodeSourcery