btrace: split record_btrace_step_thread
[deliverable/binutils-gdb.git] / gdb / rx-tdep.c
index 8442c765f89ea5a938c8a0354bf3a7b97fa3e001..abafa8d30a764f1777fb5de30a3cc81a461b51ad 100644 (file)
@@ -204,7 +204,7 @@ rx_get_opcode_byte (void *handle)
   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;
@@ -1045,7 +1045,7 @@ rx_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
 
   /* None found, create a new architecture from the information
      provided.  */
-  tdep = (struct gdbarch_tdep *) xmalloc (sizeof (struct gdbarch_tdep));
+  tdep = XNEW (struct gdbarch_tdep);
   gdbarch = gdbarch_alloc (&info, tdep);
   tdep->elf_flags = elf_flags;
 
This page took 0.024099 seconds and 4 git commands to generate.