This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: cross targeted gdb and corefiles
- From: Kevin Buettner <kevinb at redhat dot com>
- To: "Kevin \"Squail\" Endres" <kevine at wildseed dot com>, "'Kevin Buettner'" <kevinb at redhat dot com>, "'Daniel Jacobowitz'" <drow at mvista dot com>, Richard dot Earnshaw at arm dot com
- Cc: gdb at sources dot redhat dot com
- Date: Thu, 16 May 2002 15:33:07 -0700
- Subject: Re: cross targeted gdb and corefiles
- References: <43CB1396676FD4119F03001083FD2994F5F224@neptune.kirkland.local>
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