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.
+2015-07-10 Kevin Buettner <kevinb@redhat.com>
+
+ * rx-tdep.c (rx_get_opcode_byte): Use target_read_code instead
+ of target_read_memory.
+
2015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
* tui/tui-win.c (tui_set_win_height): Use a cleanup to free the
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;