This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: About bfd_elf32_xx_vec


>> 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
>
I'm so grateful for your response and sorry to bother you again.
Do you mean that GDB needs BINUTILS's support? So if I want to port gdb ,I
should make some changes to BINUTILS  first?Is there some other special
support gdb requires? And how can I get OBJDUMP? What kind of file is it? 

best of luck
Sophie
>
>> 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
--Îȶ¨¿É¿¿µÄÃâ·Ñµç×ÓÐÅÏä  ÓïÒôÓʼþ  Òƶ¯ÊéÇ©  ÈÕÀú·þÎñ  ÍøÂç´æ´¢...ÒÚÓÊδ¾¡



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]