From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14365 invoked by alias); 31 Mar 2005 14:28:36 -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 14280 invoked from network); 31 Mar 2005 14:28:30 -0000 Received: from unknown (HELO nevyn.them.org) (66.93.172.17) by sourceware.org with SMTP; 31 Mar 2005 14:28:30 -0000 Received: from drow by nevyn.them.org with local (Exim 4.50 #1 (Debian)) id 1DH0g7-0000XZ-CK; Thu, 31 Mar 2005 09:29:47 -0500 Date: Thu, 31 Mar 2005 14:28:00 -0000 From: Daniel Jacobowitz To: Jon Ringle Cc: gdb@sources.redhat.com, m.m.kettenis@alumnus.utwente.nl Subject: Re: arm core analysis on x86 host Message-ID: <20050331142946.GA1807@nevyn.them.org> Mail-Followup-To: Jon Ringle , gdb@sources.redhat.com, m.m.kettenis@alumnus.utwente.nl References: <200503300928.36020.jon.ringle@comdial.com> <20050330152636.GA7867@nevyn.them.org> <200503301801.j2UI1uJC004771@elgar.sibelius.xs4all.nl> <200503310908.05826.jon.ringle@comdial.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <200503310908.05826.jon.ringle@comdial.com> User-Agent: Mutt/1.5.6+20040907i X-SW-Source: 2005-03/txt/msg00318.txt.bz2 On Thu, Mar 31, 2005 at 09:08:05AM -0500, Jon Ringle wrote: > On Wednesday 30 March 2005 13:01, Mark Kettenis wrote: > > The core file should somehow be tagged as Linux.  If it is not tagged > > as such, how are we going to interpret it?  The fact that it is an ELF > > core file, and has notes like NT_PRSTATUS does not tell us where each > > register is stored.  Right 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 emit: > elf.e_ident[EI_OSABI] = ELFOSABI_LINUX; > The linux-2.6 series does this. > > This seemed to help in conjuction with changes to gdb/arm-linux-tdep.c to add: > set_gdbarch_regset_from_core_section(gdbarch,arm_linux_regset_from_core_section); > > I can send in a patch for the arm-linux-tdep.c changes if you'd like. It doesn't look like you have a copyright assignment on file - is that right? In that case, give me a couple of days; once my current ARM patch is finished, I can look into doing this myself based on our conversation. -- Daniel Jacobowitz CodeSourcery, LLC