From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27100 invoked by alias); 31 Mar 2005 14:08:23 -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 26605 invoked from network); 31 Mar 2005 14:08:17 -0000 Received: from unknown (HELO heavymobile.ringle.org) (12.153.69.6) by sourceware.org with SMTP; 31 Mar 2005 14:08:17 -0000 Received: by heavymobile.ringle.org (Postfix, from userid 503) id 94C486FD02; Thu, 31 Mar 2005 09:08:07 -0500 (EST) From: Jon Ringle To: gdb@sources.redhat.com Subject: Re: arm core analysis on x86 host Date: Thu, 31 Mar 2005 14:08:00 -0000 User-Agent: KMail/1.7.1 References: <200503300928.36020.jon.ringle@comdial.com> <20050330152636.GA7867@nevyn.them.org> <200503301801.j2UI1uJC004771@elgar.sibelius.xs4all.nl> In-Reply-To: <200503301801.j2UI1uJC004771@elgar.sibelius.xs4all.nl> Cc: m.m.kettenis@alumnus.utwente.nl MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200503310908.05826.jon.ringle@comdial.com> X-SW-Source: 2005-03/txt/msg00317.txt.bz2 On Wednesday 30 March 2005 13:01, Mark Kettenis wrote: > The core file should somehow be tagged as Linux. =A0If it is not tagged > as such, how are we going to interpret it? =A0The fact that it is an ELF > core file, and has notes like NT_PRSTATUS does not tell us where each > register is stored. =A0Right now we have to guess what the layout of > these notes is based on the size of the sections or because the header > describing the layout is available because we're building a native > GDB. I modified my linux kernel (based on 2.2.16) in linux/fs/binfmt_elf.c to em= it: elf.e_ident[EI_OSABI] =3D ELFOSABI_LINUX; The linux-2.6 series does this. This seemed to help in conjuction with changes to gdb/arm-linux-tdep.c to a= dd: set_gdbarch_regset_from_core_section(gdbarch,arm_linux_regset_from_core_sec= tion); I can send in a patch for the arm-linux-tdep.c changes if you'd like. Jon