From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5012 invoked by alias); 16 May 2002 22:33:17 -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 4974 invoked from network); 16 May 2002 22:33:12 -0000 Received: from unknown (HELO cygnus.com) (205.180.83.203) by sources.redhat.com with SMTP; 16 May 2002 22:33:12 -0000 Received: from romulus.sfbay.redhat.com (romulus.sfbay.redhat.com [172.16.27.251]) by runyon.cygnus.com (8.8.7-cygnus/8.8.7) with ESMTP id PAA03456; Thu, 16 May 2002 15:33:09 -0700 (PDT) Received: (from kev@localhost) by romulus.sfbay.redhat.com (8.11.6/8.11.6) id g4GMX7N19791; Thu, 16 May 2002 15:33:07 -0700 Date: Thu, 16 May 2002 15:33:00 -0000 From: Kevin Buettner Message-Id: <1020516223307.ZM19790@localhost.localdomain> In-Reply-To: "Kevin \"Squail\" Endres" "RE: cross targeted gdb and corefiles" (May 16, 3:27pm) References: <43CB1396676FD4119F03001083FD2994F5F224@neptune.kirkland.local> To: "Kevin \"Squail\" Endres" , "'Kevin Buettner'" , "'Daniel Jacobowitz'" , Richard.Earnshaw@arm.com Subject: Re: cross targeted gdb and corefiles Cc: gdb@sources.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2002-05/txt/msg00203.txt.bz2 On May 16, 3:27pm, Kevin \Squail\ Endres wrote: > Yep had just figured out to move the supply_* (and the nwfpe*) functions > from arm-linux-nat.c to arm-linux-tdep.c. I did assume that the kernel > headers needed to be from an arm configured kernel so i set the prefix to > the root of my cross toolchain whemn i configured. > > everything builds but when i try to read an arm core i get a warning about > the size of the gregset struct in the core (so possibly i am truly not > including the correct headers??) The trick is to not depend on the headers at all. One way to do this is to define (in the tdep.c file) the necessary structs entirely in terms of chars. (This includes adding in any ABI mandated padding between fields.) Kevin