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: internal-error: arm_elf_osabi_sniffer


On Wed, 2004-08-11 at 21:45, Nagender Telkar wrote:
> Hello,
> 
> I am working on gdb 6.0.
> 
> When I do an 
> 
> gdb> arm-elf-gdb helloworld.elf 
> 
> I get the following error.
> 
> ../../insight-6.0.ori/gdb/arm-tdep.c:2747: internal-error: arm_elf_osabi_sniffer
> : Unknown ARM EABI version 0x4000000
> 
You don't say so, but I guess you are compiling your code with ARM's
RVDS compiler...

> I looked into the arm-tdep file in the gdb, it seems to be failing at
> the function
> 
> static enum gdb_osabi arm_elf_osabi_sniffer (bfd *abfd)
> 
> where it gets
> 
> unsgined int elfosabi = elf_elfheader (abfd)->e_ident[EI_OSABI];
> 
> The elfosabi is getting set to ELFOSABI_NONE. 
> 
> Then it tries to get the eflags as 
> 
>  eflags = EF_ARM_EABI_VERSION(elf_elfheader(abfd)->e_flags); 
> 
> eflags is not getting set to EF_ARM_EABI_VER1, EF_ARM_EABI_VER2 or
> EF_ARM_EABI_UNKNOWN.
> 
> I think that is the problem. Thats the reason it gets to the internal error.

Yep.  GDB doesn't understand the EABI yet (even gdb 6.2 -- gdb 6.0
predates the EABI, so has no chance).  Even if it got past this point
you'd run into further problems.

R.


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