Fix inferior memory reading in GDBServer for arm/aarch32
[deliverable/binutils-gdb.git] / gdb / gdbserver / linux-aarch32-low.c
index 729b7cfa2ea185bd789d609df2d781bbd6117267..2b710ba7d614b5f35152c3e174fbf7c7bb057f61 100644 (file)
@@ -237,11 +237,11 @@ arm_breakpoint_kind_from_pc (CORE_ADDR *pcptr)
       *pcptr = UNMAKE_THUMB_ADDR (*pcptr);
 
       /* Check whether we are replacing a thumb2 32-bit instruction.  */
-      if ((*the_target->read_memory) (*pcptr, buf, 2) == 0)
+      if (target_read_memory (*pcptr, buf, 2) == 0)
        {
          unsigned short inst1 = 0;
 
-         (*the_target->read_memory) (*pcptr, (gdb_byte *) &inst1, 2);
+         target_read_memory (*pcptr, (gdb_byte *) &inst1, 2);
          if (thumb_insn_size (inst1) == 4)
            return ARM_BP_KIND_THUMB2;
        }
This page took 0.023625 seconds and 4 git commands to generate.