aboutsummaryrefslogtreecommitdiff
path: root/gdb/rx-tdep.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/rx-tdep.c')
-rw-r--r--gdb/rx-tdep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/rx-tdep.c b/gdb/rx-tdep.c
index 8442c76..0bd91ff 100644
--- a/gdb/rx-tdep.c
+++ b/gdb/rx-tdep.c
@@ -204,7 +204,7 @@ rx_get_opcode_byte (void *handle)
int status;
gdb_byte byte;
- status = target_read_memory (opcdata->pc, &byte, 1);
+ status = target_read_code (opcdata->pc, &byte, 1);
if (status == 0)
{
opcdata->pc += 1;