From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18461 invoked by alias); 19 Sep 2007 14:06:59 -0000 Received: (qmail 18447 invoked by uid 22791); 19 Sep 2007 14:06:58 -0000 X-Spam-Check-By: sourceware.org Received: from sohm.kpit.com (HELO sohm.kpit.com) (203.197.93.231) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 19 Sep 2007 14:06:50 +0000 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: error message : I'm sorry, Dave, I can't do that. Symbol format 'elf32-xc16x' unknown. Date: Wed, 19 Sep 2007 14:23:00 -0000 Message-ID: <7B5265FF85A78C4BB9DAD0EE699C476002A12897@sohm.kpit.com> From: "Bhushan Attarde" To: 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/msg00150.txt.bz2 Hi, I am facing problem while using gdb-6.7.50_20070918. When I used command like: $xc16x-elf-gdb app1.out I get the following error message: GNU gdb 6.7.50_20070918 Copyright (C) 2007 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html= >=20 This is free software: you are free to change and redistribute it There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "--host=3Di686-pc-cygwin --target=3Dxc16x-elf"... I'm sorry, Dave, I can't do that. Symbol format 'elf32-xc16x' unknown. I traced and modified find_sym_fns()in symfile.c=A0just for testing purpose= as follows: static struct sym_fns * find_sym_fns (bfd *abfd) { struct sym_fns *sf; enum bfd_flavour our_flavour =3D bfd_get_flavour (abfd); enum bfd_flavour test_flavour; /* create one bfd_flavour instance for = test purpose */ if (our_flavour =3D=3D bfd_target_srec_flavour || our_flavour =3D=3D bfd_target_ihex_flavour || our_flavour =3D=3D bfd_target_tekhex_flavour) return NULL; /* No symbols. */ for (sf =3D symtab_fns; sf !=3D NULL; sf =3D sf->next) { test_flavour =3D sf->sym_flavour; printf_unfiltered (_("test_flavour %d.. our flavour %d...\n"), test_fla= vour,our_flavour); /* print tested values */ //if (our_flavour =3D=3D sf->sym_flavour) //return sf; } error (_("I'm sorry, Dave, I can't do that. Symbol format `%s' unknown."= ), bfd_get_target (abfd)); } And got the following output : test_flavour 3.. our flavour 5... test_flavour 2.. our flavour 5... test_flavour 1.. our flavour 5... I'm sorry, Dave, I can't do that. Symbol format 'elf32-xc16x' unknown. Here the loop is iterated only for 3 times. however in gdb-6.4 (after makin= g the same changes in find_sym_fns()function in symfile.c I got different o= utput as : test_flavour 5.. our flavour 5... test_flavour 4.. our flavour 5... test_flavour 3.. our flavour 5... test_flavour 2.. our flavour 5... test_flavour 1.. our flavour 5... in this case the loop iterated 5 times giving correct expected output. I am not getting the reason why this is happening in case of gdb 6.7.50_20070918. What are the possible reasons to this problems? And what changes or additions I need to do? Any help appreciated. Thanking you in advance. Best Regards, Bhushan Attarde