From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16594 invoked by alias); 11 Aug 2004 20:45:55 -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 16542 invoked from network); 11 Aug 2004 20:45:54 -0000 Received: from unknown (HELO mproxy.gmail.com) (64.233.170.195) by sourceware.org with SMTP; 11 Aug 2004 20:45:54 -0000 Received: by mproxy.gmail.com with SMTP id 75so188890rnl for ; Wed, 11 Aug 2004 13:45:53 -0700 (PDT) Received: by 10.38.181.19 with SMTP id d19mr596633rnf; Wed, 11 Aug 2004 13:45:53 -0700 (PDT) Message-ID: <3e599100040811134529fd87e3@mail.gmail.com> Date: Wed, 11 Aug 2004 20:45:00 -0000 From: Nagender Telkar To: gdb@sources.redhat.com Subject: Re: internal-error: arm_elf_osabi_sniffer Cc: Monika Chaddha In-Reply-To: <007701c47f75$31e13340$5100a8c0@monika> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <007701c47f75$31e13340$5100a8c0@monika> X-SW-Source: 2004-08/txt/msg00183.txt.bz2 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 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. Can anyone throw some light on the issue. Thank you, Nagender On Wed, 11 Aug 2004 13:01:17 +0530, Monika Chaddha wrote: > It's already showing the line no as > > >../../insight-6.0.ori/gdb/arm-tdep.c:2747: internal-error: > > Also Search the error messages in source you are getting and find out > the reason of printing of these error messages. > > I hope this approach will help u... > > Monika > > > > >-----Original Message----- > >From: gdb-owner@sources.redhat.com > [mailto:gdb-owner@sources.redhat.com] On > >Behalf Of Nagender Telkar > >Sent: Wednesday, August 11, 2004 5:32 AM > >To: gdb@sources.redhat.com > >Subject: internal-error: arm_elf_osabi_sniffer > > > >Hello All, > > > >When I try to run arm-elf-gdb on an elf file, I get the following > >error message. Can someone tell me where do I start looking into to > >solve the problem. > > > >Thank you, > >Nagender > > > >GNU gdb 6.0 > >Copyright 2003 Free Software Foundation, Inc. > >GDB is free software, covered by the GNU General Public License, and > you > >are > >welcome to change it and/or distribute copies of it under certain > >conditions. > >Type "show copying" to see the conditions. > >There is absolutely no warranty for GDB. Type "show warranty" for > details. > >This GDB was configured as "--host=i686-pc-cygwin --target=arm-elf"... > >../../insight-6.0.ori/gdb/arm-tdep.c:2747: internal-error: > >arm_elf_osabi_sniffer > >: Unknown ARM EABI version 0x4000000 > >A problem internal to GDB has been detected, > >further debugging may prove unreliable. > >Quit this debugging session? (y or n) y > > > >../../insight-6.0.ori/gdb/arm-tdep.c:2747: internal-error: > >arm_elf_osabi_sniffer > >: Unknown ARM EABI version 0x4000000 > >A problem internal to GDB has been detected, > >further debugging may prove unreliable. > >Create a core file of GDB? (y or n) y > >Aborted (core dumped) > >