+Sun Apr 9 23:27:00 2000 Andrew Cagney <cagney@b1.cygnus.com>
+
+ From 2000-04-07 J.T. Conklin <jtc@redback.com>:
+ * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
+ replace calls to target_xfer_memory() with target_read_memory()
+ and target_write_memory().
+
Sun Apr 9 22:54:29 2000 Andrew Cagney <cagney@b1.cygnus.com>
* valops.c (value_rtti_type): Compare VALUE_ADDRESS with ``0'' not
sp = read_register (SP_REGNUM);
- target_xfer_memory (sp + FRAME_SAVED_I0,
+ target_read_memory (sp + FRAME_SAVED_I0,
®isters[REGISTER_BYTE (I0_REGNUM)],
- 8 * REGISTER_RAW_SIZE (I0_REGNUM), 0);
+ 8 * REGISTER_RAW_SIZE (I0_REGNUM));
for (i = I0_REGNUM; i <= I7_REGNUM; i++)
register_valid[i] = 1;
- target_xfer_memory (sp + FRAME_SAVED_L0,
+ target_read_memory (sp + FRAME_SAVED_L0,
®isters[REGISTER_BYTE (L0_REGNUM)],
- 8 * REGISTER_RAW_SIZE (L0_REGNUM), 0);
+ 8 * REGISTER_RAW_SIZE (L0_REGNUM));
for (i = L0_REGNUM; i <= L0_REGNUM + 7; i++)
register_valid[i] = 1;
}
{
if (!register_valid[L0_REGNUM + 5])
abort ();
- target_xfer_memory (sp + FRAME_SAVED_I0,
+ target_write_memory (sp + FRAME_SAVED_I0,
®isters[REGISTER_BYTE (I0_REGNUM)],
- 8 * REGISTER_RAW_SIZE (I0_REGNUM), 1);
+ 8 * REGISTER_RAW_SIZE (I0_REGNUM));
- target_xfer_memory (sp + FRAME_SAVED_L0,
+ target_write_memory (sp + FRAME_SAVED_L0,
®isters[REGISTER_BYTE (L0_REGNUM)],
- 8 * REGISTER_RAW_SIZE (L0_REGNUM), 1);
+ 8 * REGISTER_RAW_SIZE (L0_REGNUM));
}
else if (regno >= L0_REGNUM && regno <= I7_REGNUM)
{
else
regoffset = REGISTER_BYTE (regno) - REGISTER_BYTE (I0_REGNUM)
+ FRAME_SAVED_I0;
- target_xfer_memory (sp + regoffset, ®isters[REGISTER_BYTE (regno)],
- REGISTER_RAW_SIZE (regno), 1);
+ target_write_memory (sp + regoffset,
+ ®isters[REGISTER_BYTE (regno)],
+ REGISTER_RAW_SIZE (regno));
}
}