+Thu Jul 8 08:22:05 1993 Doug Evans (dje@canuck.cygnus.com)
+
+ * findvar.c (read_register): Provide some support for 64 bit regs.
+ (write_register): Ditto.
+
Wed Jul 7 14:30:00 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
* config/mips/nm-riscos.h: machine/machparam.h is always the right
unsigned short sval;
unsigned int ival;
unsigned long lval;
+ LONGEST llval;
int size;
SWAP_TARGET_AND_HOST (&lval, sizeof (lval));
return lval;
}
+ else if (size == sizeof (llval))
+ {
+ memcpy (&llval, ®isters[REGISTER_BYTE (regno)], sizeof (llval));
+ SWAP_TARGET_AND_HOST (&llval, sizeof (llval));
+ return llval;
+ }
else
{
error ("GDB Internal Error in read_register() for register %d, size %d",
unsigned short sval;
unsigned int ival;
unsigned long lval;
+ LONGEST llval;
int size;
PTR ptr;
ptr = (PTR) &lval;
lval = val;
}
- else
+ else if (size == sizeof(llval))
+ {
+ ptr = (PTR) &llval;
+ llval = val;
+ }
+ else
{
error ("GDB Internal Error in write_register() for register %d, size %d",
regno, size);
}
+ SWAP_TARGET_AND_HOST (ptr, size);
if (register_valid [regno])
{
- SWAP_TARGET_AND_HOST (ptr, size);
if (memcmp (®isters[REGISTER_BYTE (regno)],
ptr, size) == 0)
return;