This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [PATCH] Cross target core debugging: host=i386, Target=PPC
- From: Jason R Thorpe <thorpej at wasabisystems dot com>
- To: Kevin Buettner <kevinb at redhat dot com>
- Cc: Martin Gadbois <martin dot gadbois at colubris dot com>,gdb-patches at sources dot redhat dot com
- Date: Mon, 29 Jul 2002 16:40:57 -0700
- Subject: Re: [PATCH] Cross target core debugging: host=i386, Target=PPC
- Organization: Wasabi Systems, Inc.
- References: <3D45ACCC.9040803@colubris.com> <martin.gadbois@colubris.com> <1020729215359.ZM11339@localhost.localdomain>
On Mon, Jul 29, 2002 at 02:53:59PM -0700, Kevin Buettner wrote:
> This part will need some work. (The other parts might too; I haven't
> looked closely at them yet.) Anyway, there are several problems here...
>
> 1) The constants ELF_NGREG, ELF_NFPREG, ELF_NVRREG will almost certainly
> be incorrect for other targets.
>
> 2) Defining elf_greg_t in terms of a long isn't portable.
>
> 3) Likewise, for elf_fpreg_t being defined in terms of a double.
Take a look at the way the e.g. mips-netbsd or the sh-netbsdelf targets
do this.
--
-- Jason R. Thorpe <thorpej@wasabisystems.com>