This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: Patch for GDB rs6000-tdep.c
- From: Daniel Jacobowitz <drow at false dot org>
- To: Greg Page <gpage at ind dot alcatel dot com>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Wed, 17 May 2006 14:36:10 -0400
- Subject: Re: Patch for GDB rs6000-tdep.c
- References: <446B64BA.8050905@ind.alcatel.com>
On Wed, May 17, 2006 at 12:00:26PM -0600, Greg Page wrote:
> The attached is a patch for the file gdb-6.4/gdb/rs6000-tdep.c.
>
> The problem: The register definitions for the e500 assume only 4 bytes
> per floating-point register but the gdbserver assumes 8 bytes per
> floating-point register.
Gdbserver in the FSF tree doesn't have any concept of the e500
registers. This isn't the only thing that isn't going to work.
The right solution is to make GDB detect when it is talking to a
gdbserver that supports e500, and have the two negotiate how big
registers actually are. We're working on this, but it's complex.
--
Daniel Jacobowitz
CodeSourcery