From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13079 invoked by alias); 27 Sep 2007 13:46:31 -0000 Received: (qmail 13069 invoked by uid 22791); 27 Sep 2007 13:46:30 -0000 X-Spam-Check-By: sourceware.org Received: from sohm.kpitcummins.com (HELO sohm.kpit.com) (203.197.93.231) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 27 Sep 2007 13:46:25 +0000 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: error message : I'm sorry, Dave, I can't dothat.Symbolformat'elf32-xc16x' unknown. Date: Thu, 27 Sep 2007 13:49:00 -0000 Message-ID: <7B5265FF85A78C4BB9DAD0EE699C476002C01DE0@sohm.kpit.com> In-Reply-To: <20070927124403.GA29229@caradoc.them.org> From: "Bhushan Attarde" To: "Daniel Jacobowitz" Cc: 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/msg00232.txt.bz2 Hi Daniel, The change had worked fine. Now gdb is working without=20 "--disable-nls" switch. However One more question just for little more information --- I changed find_sym_fns() in gdb/symfile.c as to print the value for which file formats gdb has the support 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; 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; /* added line*/ printf_unfiltered (_("sys_flavour %d.. our flavour %d...\n"), test_flavour,our_flavour); /* added line*/ 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)); } This time I got following output : This GDB was configured as "--host=3Di686-pc-cygwin --target=3Dxc16x-elf"... sys_flavour 3.. our flavour 5... sys_flavour 2.. our flavour 5... sys_flavour 1.. our flavour 5... sys_flavour 5.. our flavour 5... sys_flavour 3.. our flavour 5... sys_flavour 2.. our flavour 5... sys_flavour 1.. our flavour 5... sys_flavour 5.. our flavour 5... my question is why the for loop has executed 2 times ?=20 I mean to say once it has found=20 "(our flavour=3D=3D sf->sym_flavour)" and returning "sf" for 1st time again the loop is executed one more time to return the same.=20 =20 --Bhushan Attarde -----Original Message----- From: Daniel Jacobowitz [mailto:drow@false.org]=20 Sent: Thursday, September 27, 2007 6:14 PM To: Bhushan Attarde Cc: gdb@sourceware.org Subject: Re: error message : I'm sorry, Dave, I can't dothat.Symbolformat'elf32-xc16x' unknown. On Thu, Sep 27, 2007 at 06:03:31PM +0530, Bhushan Attarde wrote: > 1.There were some undefined references to `_libintl_dgettext' >=20 > /* this is the part of gdb/config.log file */ >=20 > configure:21854: checking for ELF support in BFD > configure:21878: i686-pc-cygwin-gcc -o conftest.exe -Os > -I/cygdrive/c/cyggdb/src/gdb-6.7.50_20070918/gdb/../include -I../bfd > -I/cygdrive/c/cyggdb/src/gdb-6.7.50_20070918/gdb/../bfd -L../bfd > -L../libiberty conftest.c -lncurses -lm -lbfd -liberty >&5 > ../bfd/libbfd.a(elf.o):elf.c:(.text+0x4d9): undefined reference to > `_libintl_dgettext' Aha! This means the configure check is buggy. What happens if you replace this line: LIBS=3D"$LIBS -lbfd -liberty" with this: LIBS=3D"$LIBS -lbfd -liberty $LIBINTL" --=20 Daniel Jacobowitz CodeSourcery