From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18616 invoked by alias); 13 Jun 2003 15:48: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 5518 invoked from network); 13 Jun 2003 15:42:57 -0000 Received: from unknown (HELO localhost.redhat.com) (207.219.125.131) by sources.redhat.com with SMTP; 13 Jun 2003 15:42:57 -0000 Received: from redhat.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 272CF2B5F; Fri, 13 Jun 2003 11:42:48 -0400 (EDT) Message-ID: <3EE9F0F8.8030207@redhat.com> Date: Fri, 13 Jun 2003 15:48:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.2) Gecko/20030223 X-Accept-Language: en-us, en MIME-Version: 1.0 To: songhui Cc: gdb@sources.redhat.com Subject: Re: About bfd_elf32_xx_vec References: <20030613210948.76425.qmail@eyou.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-SW-Source: 2003-06/txt/msg00252.txt.bz2 > Hi,all :) > > I'm just beginning to port gdb to a new target.I've modified some > configuring files and added several files such as cpu-*.c,elf32-*.c,*-tdep.c > to support my new chip(of couse,I only changed the names of other machine's > files). Now I can use command of "configure" to configure gdb as my target > correctly.But when I try to make it there is alway an error that I can't get > rid of. This looks like more of a BINUTILS (binutils@sources.redhat.com) question. Can you, for instance, get OBJDUMP to build? Andrew > libgdb.a(arch-utils.o): In function `generic_in_solib_call_trampoline': > > /home/tmp/gdb-5.2/gdb/arch-utils.c:111: undefined reference to > `bfd_elf32_vp6_vec' > > ../bfd/libbfd.a(targets.o): In function `find_target': > > /home/tmp/gdb-5.2/bfd/targets.c:1062: undefined reference to > `bfd_elf32_vp6_vec' > > /home/tmp/gdb-5.2/bfd/targets.c:1062: undefined reference to > `bfd_elf32_vp6_vec' > > /home/tmp/gdb-5.2/bfd/targets.c:1066: undefined reference to > `bfd_elf32_vp6_vec' > > collect2: ld returned 1 exit status > > make[1]: *** [gdb] Error 1 > > make[1]: Leaving directory `/home/tmp/gdb-5.2/gdb' > > make: *** [all-gdb] Error 2 > > ********************************************************************* > > I do add this line to file of bfd/targets.c: > **extern const bfd_target bfd_elf32_vp6_vec;** > > I'm totally a beginner not only of gdb but also of programming. Any > response will be appreciated very much and thanks in advance.:) > > Sophie > > > > > > > > --http://www.eyou.com > --Îȶ¨¿É¿¿µÄÃâ·Ñµç×ÓÐÅÏä ÓïÒôÓʼþ Òƶ¯ÊéÇ© ÈÕÀú·þÎñ ÍøÂç´æ´¢...ÒÚÓÊδ¾¡ > > >