This patch uses target_read_code instead of target_read_memory in
authorMichael Eager <eager@eagercon.com>
Thu, 24 Jul 2014 02:27:20 +0000 (19:27 -0700)
committerMichael Eager <eager@eagercon.com>
Thu, 24 Jul 2014 02:27:20 +0000 (19:27 -0700)
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.

gdb/ChangeLog
gdb/microblaze-tdep.c

index f6b97deabab5bd552bb8b00f971d7ec4c7d7bae4..02f5e92dfbb10fab977a4f282c1174478f4fd3dc 100644 (file)
@@ -1,3 +1,8 @@
+2014-07-23  Ajit Agarwal <ajitkum@xilinx.com>
+
+       * microblaze-tdep.c (microblaze_fetch_instruction): Use of
+       target_read_code.
+
 2014-07-23  Chen Gang <gang.chen.5i5j@gmail.com>
 
        * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
index 9bec2602f2962963cf7275a8739da636f3655ca2..93e93dbe5674bd3d90479954fb648e354e059253 100644 (file)
@@ -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);