aboutsummaryrefslogtreecommitdiff
path: root/gdb/microblaze-tdep.c
diff options
context:
space:
mode:
authorMichael Eager <eager@eagercon.com>2014-07-23 19:27:20 -0700
committerMichael Eager <eager@eagercon.com>2014-07-23 19:27:20 -0700
commit342119630e4612856017d03f2892f5a693d85d8e (patch)
tree47ad6b9e3ed55992c52e6cf0f601aeaee0a065a4 /gdb/microblaze-tdep.c
parenta52b4d3e268c10b84a48572db632d5011018e3ef (diff)
downloadgdb-342119630e4612856017d03f2892f5a693d85d8e.zip
gdb-342119630e4612856017d03f2892f5a693d85d8e.tar.gz
gdb-342119630e4612856017d03f2892f5a693d85d8e.tar.bz2
This patch uses target_read_code instead of target_read_memory in
microblaze_fetch instruction in order to use cache memory accesses requested in target_read_code. ChangeLog: 2014-06-17 Ajit Agarwal <ajitkum@xilinx.com> * microblaze-tdep.c (microblaze_fetch_instruction): Use of target_read_code.
Diffstat (limited to 'gdb/microblaze-tdep.c')
-rw-r--r--gdb/microblaze-tdep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/microblaze-tdep.c b/gdb/microblaze-tdep.c
index 9bec260..93e93db 100644
--- a/gdb/microblaze-tdep.c
+++ b/gdb/microblaze-tdep.c
@@ -130,7 +130,7 @@ microblaze_fetch_instruction (CORE_ADDR pc)
gdb_byte buf[4];
/* If we can't read the instruction at PC, return zero. */
- if (target_read_memory (pc, buf, sizeof (buf)))
+ if (target_read_code (pc, buf, sizeof (buf)))
return 0;
return extract_unsigned_integer (buf, 4, byte_order);