This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Fwd: Re: Patch for GDB rs6000-tdep.c]




-------- Original Message --------















gdbserver seems to use a file generated from gdb-6.4/gdb/./regformats/reg-ppc.dat to define its notion of the PPC's registers. I was referring to that file. I was assuming this came from the FSF tree since I got the tar ball from http://www.gnu.org/.

With the patch, it seems to work okay. Are there other known issues?

Thanks,
Greg

Daniel Jacobowitz wrote:
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.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]