* alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
authorRichard Henderson <rth@redhat.com>
Wed, 4 Jun 2003 16:44:29 +0000 (16:44 +0000)
committerRichard Henderson <rth@redhat.com>
Wed, 4 Jun 2003 16:44:29 +0000 (16:44 +0000)
        (alpha_sigtramp_frame_this_id): Use get_frame_memory.
        (alpha_sigtramp_frame_prev_register): Likewise.
        (alpha_heuristic_frame_prev_register): Likewise.
        * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.

gdb/ChangeLog
gdb/alpha-mdebug-tdep.c
gdb/alpha-tdep.c

index 1e48eb6f1613a47bf76142d29f0491ee3013ce5c..d7f7a957a949d4d9fef9a092c69a076b4bfe22d0 100644 (file)
@@ -1,5 +1,11 @@
 2003-06-03  Richard Henderson  <rth@redhat.com>
 
+       * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
+       (alpha_sigtramp_frame_this_id): Use get_frame_memory.
+       (alpha_sigtramp_frame_prev_register): Likewise.
+       (alpha_heuristic_frame_prev_register): Likewise.
+       * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
+
        * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use 
        alpha-specific register id names.
        (alpha_mdebug_frame_unwind_cache): Likewise.
index 520656b455b4eda5b6c7623ffd757c54f1ddd82f..d481986b8c39a1ad3e3c1a80c77285d7f325a219 100644 (file)
@@ -275,7 +275,7 @@ alpha_mdebug_frame_prev_register (struct frame_info *next_frame,
       *addrp = info->saved_regs[regnum];
       *realnump = -1;
       if (bufferp != NULL)
-       read_memory (*addrp, bufferp, ALPHA_REGISTER_SIZE);
+       get_frame_memory (next_frame, *addrp, bufferp, ALPHA_REGISTER_SIZE);
       return;
     }
 
index f2b354f7a6ce8003019c56b90a561991b4dc815a..f88725ca9a0878c08579d562f3bc5f4b6b0415eb 100644 (file)
@@ -813,7 +813,8 @@ alpha_sigtramp_frame_this_id (struct frame_info *next_frame,
   /* The stack address is trivially read from the sigcontext.  */
   stack_addr = alpha_sigtramp_register_address (info->sigcontext_addr,
                                                ALPHA_SP_REGNUM);
-  stack_addr = read_memory_unsigned_integer (stack_addr, ALPHA_REGISTER_SIZE);
+  stack_addr = get_frame_memory_unsigned (next_frame, stack_addr,
+                                         ALPHA_REGISTER_SIZE);
 
   *this_id = frame_id_build (stack_addr, code_addr);
 }
@@ -842,7 +843,7 @@ alpha_sigtramp_frame_prev_register (struct frame_info *next_frame,
          *addrp = addr;
          *realnump = -1;
          if (bufferp != NULL)
-           read_memory (addr, bufferp, ALPHA_REGISTER_SIZE);
+           get_frame_memory (next_frame, addr, bufferp, ALPHA_REGISTER_SIZE);
          return;
        }
     }
@@ -1174,7 +1175,7 @@ alpha_heuristic_frame_prev_register (struct frame_info *next_frame,
       *addrp = info->saved_regs[regnum];
       *realnump = -1;
       if (bufferp != NULL)
-       read_memory (*addrp, bufferp, ALPHA_REGISTER_SIZE);
+       get_frame_memory (next_frame, *addrp, bufferp, ALPHA_REGISTER_SIZE);
       return;
     }
 
@@ -1364,7 +1365,7 @@ alpha_next_pc (CORE_ADDR pc)
   int offset;
   LONGEST rav;
 
-  insn = read_memory_unsigned_integer (pc, sizeof (insn));
+  insn = alpha_read_insn (pc);
 
   /* Opcode is top 6 bits. */
   op = (insn >> 26) & 0x3f;