diff options
author | Kevin Buettner <kevinb@redhat.com> | 2015-07-09 16:05:31 -0700 |
---|---|---|
committer | Kevin Buettner <kevinb@redhat.com> | 2015-07-10 13:14:32 -0700 |
commit | a0e28e54675fd92e73df71fed5d4f6c718f40102 (patch) | |
tree | 1e345c3168d327c4d463a96493dd16059fd13b27 /gdb/rx-tdep.c | |
parent | 58c1b36c673c88f13fe0cf3844fef643c35e8318 (diff) | |
download | gdb-a0e28e54675fd92e73df71fed5d4f6c718f40102.zip gdb-a0e28e54675fd92e73df71fed5d4f6c718f40102.tar.gz gdb-a0e28e54675fd92e73df71fed5d4f6c718f40102.tar.bz2 |
rx-tdep.c: Use target_read_code instead of target_read_memory.
This change causes the prologue scanner and the frame type scanner in
rx-tdep.c to use target_read_code() instead of target_read_memory().
This change allows these instruction scanners to operate much more
quickly due to the fact that target_read_code() can potentially read
from a cache maintained by GDB.
gdb/ChangeLog:
* rx-tdep.c (rx_get_opcode_byte): Use target_read_code instead
of target_read_memory.
Diffstat (limited to 'gdb/rx-tdep.c')
-rw-r--r-- | gdb/rx-tdep.c | 2 |
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; |