aboutsummaryrefslogtreecommitdiff
path: root/gdb/lynx-nat.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2000-04-09 13:29:52 +0000
committerAndrew Cagney <cagney@redhat.com>2000-04-09 13:29:52 +0000
commitf7384f0ffde53e161120ed59856680ec8e31c5ca (patch)
tree125a62d55af4b1de839e9ea2c0b55ca7cec89d82 /gdb/lynx-nat.c
parent85c9a9d507fb41d3a1160eae93849c6d3a46beb9 (diff)
downloadgdb-f7384f0ffde53e161120ed59856680ec8e31c5ca.zip
gdb-f7384f0ffde53e161120ed59856680ec8e31c5ca.tar.gz
gdb-f7384f0ffde53e161120ed59856680ec8e31c5ca.tar.bz2
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().
Diffstat (limited to 'gdb/lynx-nat.c')
-rw-r--r--gdb/lynx-nat.c21
1 files changed, 11 insertions, 10 deletions
diff --git a/gdb/lynx-nat.c b/gdb/lynx-nat.c
index 2477b1f..baf1c22 100644
--- a/gdb/lynx-nat.c
+++ b/gdb/lynx-nat.c
@@ -319,15 +319,15 @@ fetch_inferior_registers (regno)
sp = read_register (SP_REGNUM);
- target_xfer_memory (sp + FRAME_SAVED_I0,
+ target_read_memory (sp + FRAME_SAVED_I0,
&registers[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,
&registers[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;
}
@@ -413,13 +413,13 @@ store_inferior_registers (regno)
{
if (!register_valid[L0_REGNUM + 5])
abort ();
- target_xfer_memory (sp + FRAME_SAVED_I0,
+ target_write_memory (sp + FRAME_SAVED_I0,
&registers[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,
&registers[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)
{
@@ -431,8 +431,9 @@ store_inferior_registers (regno)
else
regoffset = REGISTER_BYTE (regno) - REGISTER_BYTE (I0_REGNUM)
+ FRAME_SAVED_I0;
- target_xfer_memory (sp + regoffset, &registers[REGISTER_BYTE (regno)],
- REGISTER_RAW_SIZE (regno), 1);
+ target_write_memory (sp + regoffset,
+ &registers[REGISTER_BYTE (regno)],
+ REGISTER_RAW_SIZE (regno));
}
}