This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Patch, microblaze]: Communicate in larger blocks with the target.


On 06/17/14 11:12, Ajit Kumar Agarwal wrote:
Sorry Pedro. The ChangeLog  was missing. Could you please review  and let me know if its okay.

     [Patch, microblaze]: Use target_read_code in microblaze_fetch_instruction

     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.

     Signed-off-by:Ajit Agarwal ajitkum@xilinx.com

---
  gdb/microblaze-tdep.c |    2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/gdb/microblaze-tdep.c b/gdb/microblaze-tdep.c
index 14c1b52..4e5b2d5 100644
--- a/gdb/microblaze-tdep.c
+++ b/gdb/microblaze-tdep.c
@@ -126,7 +126,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);


Committed 3421196.

--
Michael Eager	 eager@eagercon.com
1960 Park Blvd., Palo Alto, CA 94306  650-325-8077


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]