This is the mail archive of the
gdb-patches@sourceware.cygnus.com
mailing list for the GDB project.
RFA: gdb/i386-linux-nat.c
- To: gdb-patches at sourceware dot cygnus dot com
- Subject: RFA: gdb/i386-linux-nat.c
- From: David Taylor <taylor at cygnus dot com>
- Date: Mon, 11 Oct 1999 11:30:06 -0400
- cc: jimb at cygnus dot com
The following change needs to be made to fill_fpregset and
supply_fpregset in i386-linux-nat.c:
* i386-linux-nat.c (supply_fpregset, fill_fpregset): copy
from/to start of fpregsetp not start of st_space as the first
stuff we copy is the FP control registers not the actual FP values.
Jim,
Okay to commit?
taylor@texas 528: cvs diff -u i386-linux-nat.c
Index: i386-linux-nat.c
===================================================================
RCS file: /cvs/cvsfiles/devo/gdb/i386-linux-nat.c,v
retrieving revision 1.2
diff -u -r1.2 i386-linux-nat.c
--- i386-linux-nat.c 1999/09/03 08:16:57 1.2
+++ i386-linux-nat.c 1999/10/11 15:19:55
@@ -96,7 +96,7 @@
{
register int regi;
char *from;
- from = (char *) &(fpregsetp->st_space[0]);
+ from = (char *) fpregsetp;
for (regi = FPSTART_REGNUM ; regi <= FPEND_REGNUM ; regi++)
{
supply_register(regi, from);
@@ -117,7 +117,7 @@
char *to;
char *from;
- to = (char *) &(fpregsetp->st_space[0]);
+ to = (char *) fpregsetp;
for (regi = FPSTART_REGNUM ; regi <= FPEND_REGNUM ; regi++)
{
from = (char *) ®isters[REGISTER_BYTE (regi)];