2002-09-17 Andrew Cagney <cagney@redhat.com>
authorAndrew Cagney <cagney@redhat.com>
Tue, 17 Sep 2002 20:42:01 +0000 (20:42 +0000)
committerAndrew Cagney <cagney@redhat.com>
Tue, 17 Sep 2002 20:42:01 +0000 (20:42 +0000)
* h8300-tdep.c (h8300_frame_chain):
(h8300_frame_saved_pc):

* blockframe.c (deprecated_read_register_dummy): Rename
generic_read_register_dummy.
* frame.c (frame_unwind_signed_register): New function.
(frame_unwind_unsigned_register): New function.
* frame.h (frame_unwind_signed_register): Declare.
(frame_unwind_unsigned_register): Declare.
(deprecated_read_register_dummy): Rename
generic_read_register_dummy.

* xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
* rs6000-tdep.c (rs6000_frame_saved_pc): Update.
* s390-tdep.c (s390_frame_saved_pc_nofix): Update.
(s390_frame_chain): Update.
* v850-tdep.c (v850_find_callers_reg): Update.
(v850_frame_saved_pc): Update.
* m32r-tdep.c (m32r_init_extra_frame_info): Update.
(m32r_find_callers_reg): Update.
(m32r_frame_saved_pc): Update.
* sh-tdep.c (sh_find_callers_reg): Update.
(sh64_get_saved_pr): Update.
(sh_init_extra_frame_info): Update.
(sh_init_extra_frame_info): Update.
(sh64_init_extra_frame_info): Update.
(sh64_init_extra_frame_info): Update.
* mcore-tdep.c (mcore_find_callers_reg): Update.
(mcore_frame_saved_pc): Update.
(mcore_init_extra_frame_info): Update.
* i386-tdep.c (i386_frame_saved_pc): Update.
* ia64-tdep.c (ia64_frame_saved_pc): Update.
(ia64_init_extra_frame_info): Update.
(ia64_init_extra_frame_info): Update.
* d10v-tdep.c (d10v_frame_saved_pc): Update.
* cris-tdep.c (cris_init_extra_frame_info): Update.
* avr-tdep.c (avr_frame_chain): Update.
(avr_init_extra_frame_info): Update.
(avr_frame_saved_pc): Update.
* arm-tdep.c (arm_find_callers_reg): Update.
(arm_init_extra_frame_info): Update.
(arm_frame_saved_pc): Update.

18 files changed:
gdb/ChangeLog
gdb/arm-tdep.c
gdb/avr-tdep.c
gdb/blockframe.c
gdb/cris-tdep.c
gdb/d10v-tdep.c
gdb/frame.c
gdb/frame.h
gdb/h8300-tdep.c
gdb/i386-tdep.c
gdb/ia64-tdep.c
gdb/m32r-tdep.c
gdb/mcore-tdep.c
gdb/rs6000-tdep.c
gdb/s390-tdep.c
gdb/sh-tdep.c
gdb/v850-tdep.c
gdb/xstormy16-tdep.c

index 7329b29661e19b82b9a35bc44abeb6025272628e..14d09fb87441b6f68e98a378d6be7a9549eb82eb 100644 (file)
@@ -1,3 +1,47 @@
+2002-09-17  Andrew Cagney  <cagney@redhat.com>
+
+       * blockframe.c (deprecated_read_register_dummy): Rename
+       generic_read_register_dummy.
+       * frame.c (frame_unwind_signed_register): New function.
+       (frame_unwind_unsigned_register): New function.
+       * frame.h (frame_unwind_signed_register): Declare.
+       (frame_unwind_unsigned_register): Declare.
+       (deprecated_read_register_dummy): Rename
+       generic_read_register_dummy.
+
+       * h8300-tdep.c (h8300_frame_chain): Update.
+       (h8300_frame_saved_pc): Update.
+       * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
+       * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
+       * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
+       (s390_frame_chain): Update.
+       * v850-tdep.c (v850_find_callers_reg): Update.
+       (v850_frame_saved_pc): Update.
+       * m32r-tdep.c (m32r_init_extra_frame_info): Update.
+       (m32r_find_callers_reg): Update.
+       (m32r_frame_saved_pc): Update.
+       * sh-tdep.c (sh_find_callers_reg): Update.
+       (sh64_get_saved_pr): Update.
+       (sh_init_extra_frame_info): Update.
+       (sh_init_extra_frame_info): Update.
+       (sh64_init_extra_frame_info): Update.
+       (sh64_init_extra_frame_info): Update.
+       * mcore-tdep.c (mcore_find_callers_reg): Update.
+       (mcore_frame_saved_pc): Update.
+       (mcore_init_extra_frame_info): Update.
+       * i386-tdep.c (i386_frame_saved_pc): Update.
+       * ia64-tdep.c (ia64_frame_saved_pc): Update.
+       (ia64_init_extra_frame_info): Update.
+       (ia64_init_extra_frame_info): Update.
+       * d10v-tdep.c (d10v_frame_saved_pc): Update.
+       * cris-tdep.c (cris_init_extra_frame_info): Update.
+       * avr-tdep.c (avr_frame_chain): Update.
+       (avr_init_extra_frame_info): Update.
+       (avr_frame_saved_pc): Update.
+       * arm-tdep.c (arm_find_callers_reg): Update.
+       (arm_init_extra_frame_info): Update.
+       (arm_frame_saved_pc): Update.
+
 2002-09-17  Tom Tromey  <tromey@redhat.com>
 
        * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
index e61c5938ef72822a56dffaa5696bc9a8b7531084..82444d1c594cbbb3ee7061ea1f5c9cf364a472b8 100644 (file)
@@ -995,7 +995,7 @@ arm_find_callers_reg (struct frame_info *fi, int regnum)
       if (USE_GENERIC_DUMMY_FRAMES
          && PC_IN_CALL_DUMMY (fi->pc, 0, 0))
        {
-         return generic_read_register_dummy (fi->pc, fi->frame, regnum);
+         return deprecated_read_register_dummy (fi->pc, fi->frame, regnum);
        }
       else if (fi->saved_regs[regnum] != 0)
        {
@@ -1110,8 +1110,8 @@ arm_init_extra_frame_info (int fromleaf, struct frame_info *fi)
           && PC_IN_CALL_DUMMY (fi->next->pc, 0, 0))
     /* For generic dummy frames, pull the value direct from the frame.
        Having an unwind function to do this would be nice.  */
-    sp = generic_read_register_dummy (fi->next->pc, fi->next->frame,
-                                     ARM_SP_REGNUM);
+    sp = deprecated_read_register_dummy (fi->next->pc, fi->next->frame,
+                                        ARM_SP_REGNUM);
   else
     sp = (fi->next->frame - fi->next->extra_info->frameoffset
          + fi->next->extra_info->framesize);
@@ -1221,7 +1221,7 @@ arm_frame_saved_pc (struct frame_info *fi)
   /* If a dummy frame, pull the PC out of the frame's register buffer.  */
   if (USE_GENERIC_DUMMY_FRAMES
       && PC_IN_CALL_DUMMY (fi->pc, 0, 0))
-    return generic_read_register_dummy (fi->pc, fi->frame, ARM_PC_REGNUM);
+    return deprecated_read_register_dummy (fi->pc, fi->frame, ARM_PC_REGNUM);
 
   if (PC_IN_CALL_DUMMY (fi->pc, fi->frame - fi->extra_info->frameoffset,
                        fi->frame))
index e38f13d2a62999968117879d75d000248fe43cd7..bcd78e11db37b48c5d791ea57fa9f0a8368588b0 100644 (file)
@@ -755,7 +755,11 @@ avr_init_extra_frame_info (int fromleaf, struct frame_info *fi)
     {
       /* We need to setup fi->frame here because run_stack_dummy gets it wrong
          by assuming it's always FP.  */
-      fi->frame = generic_read_register_dummy (fi->pc, fi->frame, fi->frame);
+      /* FIXME: cagney/2002-09-13: This is wrong.  The third parameter
+         to deprecated_read_register_dummy() is REGNUM and not a frame
+         address.  */
+      fi->frame = deprecated_read_register_dummy (fi->pc, fi->frame,
+                                                 fi->frame);
     }
   else if (!fi->next)          /* this is the innermost frame? */
     fi->frame = read_register (fi->extra_info->framereg);
@@ -867,8 +871,8 @@ static CORE_ADDR
 avr_frame_saved_pc (struct frame_info *frame)
 {
   if (PC_IN_CALL_DUMMY (frame->pc, frame->frame, frame->frame))
-    return generic_read_register_dummy (frame->pc, frame->frame,
-                                       AVR_PC_REGNUM);
+    return deprecated_read_register_dummy (frame->pc, frame->frame,
+                                          AVR_PC_REGNUM);
   else
     return frame->extra_info->return_pc;
 }
@@ -1033,10 +1037,9 @@ avr_frame_chain (struct frame_info *frame)
   if (PC_IN_CALL_DUMMY (frame->pc, frame->frame, frame->frame))
     {
       /* initialize the return_pc now */
-      frame->extra_info->return_pc = generic_read_register_dummy (frame->pc,
-                                                                 frame->
-                                                                 frame,
-                                                                 AVR_PC_REGNUM);
+      frame->extra_info->return_pc
+       = deprecated_read_register_dummy (frame->pc, frame->frame,
+                                         AVR_PC_REGNUM);
       return frame->frame;
     }
   return (frame->extra_info->is_main ? 0
index 3ff725b72686b79a937aa6fdcc5ef6c589ab313c..674285d7074a5db57e98d60af14b1a261f01dadd 100644 (file)
@@ -1208,7 +1208,7 @@ generic_pc_in_call_dummy (CORE_ADDR pc, CORE_ADDR sp, CORE_ADDR fp)
    Find a saved register from before GDB calls a function in the inferior */
 
 CORE_ADDR
-generic_read_register_dummy (CORE_ADDR pc, CORE_ADDR fp, int regno)
+deprecated_read_register_dummy (CORE_ADDR pc, CORE_ADDR fp, int regno)
 {
   struct regcache *dummy_regs = generic_find_dummy_frame (pc, fp);
 
index c53c7ea87acc1c1647c6009022ddedb4cfa02118..0bfb5b32f6d22b6054189bc397a042caa486041f 100644 (file)
@@ -1214,9 +1214,10 @@ cris_init_extra_frame_info (int fromleaf, struct frame_info *fi)
     {    
       /* We need to setup fi->frame here because run_stack_dummy gets it wrong
          by assuming it's always FP.  */
-      fi->frame = generic_read_register_dummy (fi->pc, fi->frame, SP_REGNUM);
+      fi->frame = deprecated_read_register_dummy (fi->pc, fi->frame,
+                                                 SP_REGNUM);
       fi->extra_info->return_pc = 
-        generic_read_register_dummy (fi->pc, fi->frame, PC_REGNUM);
+        deprecated_read_register_dummy (fi->pc, fi->frame, PC_REGNUM);
 
       /* FIXME: Is this necessarily true?  */
       fi->extra_info->leaf_function = 0;
index 4e0210696098fe33e9528b7fe49f6957afd666b2..d338ff47810b139e68e5b0bcac53055398ffc733 100644 (file)
@@ -513,9 +513,9 @@ static CORE_ADDR
 d10v_frame_saved_pc (struct frame_info *frame)
 {
   if (PC_IN_CALL_DUMMY (frame->pc, frame->frame, frame->frame))
-    return d10v_make_iaddr (generic_read_register_dummy (frame->pc, 
-                                                        frame->frame, 
-                                                        PC_REGNUM));
+    return d10v_make_iaddr (deprecated_read_register_dummy (frame->pc, 
+                                                           frame->frame, 
+                                                           PC_REGNUM));
   else
     return ((frame)->extra_info->return_pc);
 }
index 2da030593890e5ca6a97733236679457f9406a6a..82754ef1ce57c430373a1b20c572c799606755d5 100644 (file)
@@ -122,6 +122,33 @@ frame_register_unwind (struct frame_info *frame, int regnum,
                          optimizedp, lvalp, addrp, realnump, bufferp);
 }
 
+void
+frame_unwind_signed_register (struct frame_info *frame, int regnum,
+                             LONGEST *val)
+{
+  int optimized;
+  CORE_ADDR addr;
+  int realnum;
+  enum lval_type lval;
+  void *buf = alloca (MAX_REGISTER_RAW_SIZE);
+  frame_register_unwind (frame, regnum, &optimized, &lval, &addr,
+                        &realnum, buf);
+  (*val) = extract_signed_integer (buf, REGISTER_VIRTUAL_SIZE (regnum));
+}
+
+void
+frame_unwind_unsigned_register (struct frame_info *frame, int regnum,
+                               ULONGEST *val)
+{
+  int optimized;
+  CORE_ADDR addr;
+  int realnum;
+  enum lval_type lval;
+  void *buf = alloca (MAX_REGISTER_RAW_SIZE);
+  frame_register_unwind (frame, regnum, &optimized, &lval, &addr,
+                        &realnum, buf);
+  (*val) = extract_unsigned_integer (buf, REGISTER_VIRTUAL_SIZE (regnum));
+}
 
 void
 generic_unwind_get_saved_register (char *raw_buffer,
index b1fd93cf06f665e7e978b4124e1307e6b34f6126..df2a0215f1dfe80e3308a3aea4d0e8b26b2e65c7 100644 (file)
@@ -302,8 +302,11 @@ extern struct frame_info *find_frame_addr_in_frame_chain (CORE_ADDR);
 
 extern CORE_ADDR sigtramp_saved_pc (struct frame_info *);
 
-extern CORE_ADDR generic_read_register_dummy (CORE_ADDR pc,
-                                             CORE_ADDR fp, int);
+/* NOTE: cagney/2002-09-13: There is no need for this function.
+   Instead either of frame_unwind_signed_register() or
+   frame_unwind_unsigned_register() can be used.  */
+extern CORE_ADDR deprecated_read_register_dummy (CORE_ADDR pc,
+                                                CORE_ADDR fp, int);
 extern void generic_push_dummy_frame (void);
 extern void generic_pop_current_frame (void (*)(struct frame_info *));
 extern void generic_pop_dummy_frame (void);
@@ -342,6 +345,15 @@ extern void frame_register_unwind (struct frame_info *frame, int regnum,
                                   CORE_ADDR *addrp, int *realnump,
                                   void *valuep);
 
+/* Unwind FRAME so that the value of register REGNUM, in the previous
+   frame is returned.  Simplified versions of frame_register_unwind.  */
+/* NOTE: cagney/2002-09-13: Return void as one day these functions may
+   be changed to return an indication that the read succeeded.  */
+extern void frame_unwind_signed_register (struct frame_info *frame,
+                                         int regnum, LONGEST *val);
+extern void frame_unwind_unsigned_register (struct frame_info *frame,
+                                           int regnum, ULONGEST *val);
+
 extern void generic_save_call_dummy_addr (CORE_ADDR lo, CORE_ADDR hi);
 
 extern void get_saved_register (char *raw_buffer, int *optimized,
index be55327aba667435637c2f9081d95d14bc24734c..087084c88ece5e33bc6393b97a77f0f8c3966a31 100644 (file)
@@ -493,10 +493,9 @@ h8300_frame_chain (struct frame_info *thisframe)
 {
   if (PC_IN_CALL_DUMMY (thisframe->pc, thisframe->frame, thisframe->frame))
     {                          /* initialize the from_pc now */
-      thisframe->extra_info->from_pc = generic_read_register_dummy (
-                                                       thisframe->pc,
-                                                       thisframe->frame,
-                                                       E_PC_REGNUM);
+      thisframe->extra_info->from_pc =
+       deprecated_read_register_dummy (thisframe->pc, thisframe->frame,
+                                       E_PC_REGNUM);
       return thisframe->frame;
     }
   return thisframe->saved_regs[E_SP_REGNUM];
@@ -511,7 +510,8 @@ static CORE_ADDR
 h8300_frame_saved_pc (struct frame_info *frame)
 {
   if (PC_IN_CALL_DUMMY (frame->pc, frame->frame, frame->frame))
-    return generic_read_register_dummy (frame->pc, frame->frame, E_PC_REGNUM);
+    return deprecated_read_register_dummy (frame->pc, frame->frame,
+                                          E_PC_REGNUM);
   else
     return frame->extra_info->from_pc;
 }
index 3a90bc05febe271cbc764b57f7b4e906a26973fb..5a19308294f71184b9bb531d6032ed961c8d6b55 100644 (file)
@@ -535,8 +535,8 @@ static CORE_ADDR
 i386_frame_saved_pc (struct frame_info *frame)
 {
   if (PC_IN_CALL_DUMMY (frame->pc, 0, 0))
-    return generic_read_register_dummy (frame->pc, frame->frame,
-                                       PC_REGNUM);
+    return deprecated_read_register_dummy (frame->pc, frame->frame,
+                                          PC_REGNUM);
 
   if (frame->signal_handler_caller)
     return i386_sigtramp_saved_pc (frame);
index 18741944a5ad5b43aec187251148aaa1a1fed973..53f21a46b1f1530ebfc7f08f67418fcb4c8f6831 100644 (file)
@@ -723,7 +723,7 @@ ia64_frame_saved_pc (struct frame_info *frame)
   if (frame->signal_handler_caller)
     return read_sigcontext_register (frame, pc_regnum);
   else if (PC_IN_CALL_DUMMY (frame->pc, frame->frame, frame->frame))
-    return generic_read_register_dummy (frame->pc, frame->frame, pc_regnum);
+    return deprecated_read_register_dummy (frame->pc, frame->frame, pc_regnum);
   else
     {
       FRAME_INIT_SAVED_REGS (frame);
@@ -1500,10 +1500,12 @@ ia64_init_extra_frame_info (int fromleaf, struct frame_info *frame)
     }
   else if (next_frame_is_call_dummy)
     {
-      bsp = generic_read_register_dummy (frame->next->pc, frame->next->frame,
-                                         IA64_BSP_REGNUM);
-      cfm = generic_read_register_dummy (frame->next->pc, frame->next->frame,
-                                         IA64_CFM_REGNUM);
+      bsp = deprecated_read_register_dummy (frame->next->pc,
+                                           frame->next->frame,
+                                           IA64_BSP_REGNUM);
+      cfm = deprecated_read_register_dummy (frame->next->pc,
+                                           frame->next->frame,
+                                           IA64_CFM_REGNUM);
     }
   else
     {
@@ -1518,8 +1520,8 @@ ia64_init_extra_frame_info (int fromleaf, struct frame_info *frame)
       else if (frn->next
                && PC_IN_CALL_DUMMY (frn->next->pc, frn->next->frame,
                                                   frn->next->frame))
-       cfm = generic_read_register_dummy (frn->next->pc, frn->next->frame,
-                                          IA64_PFS_REGNUM);
+       cfm = deprecated_read_register_dummy (frn->next->pc, frn->next->frame,
+                                             IA64_PFS_REGNUM);
       else
        cfm = read_register (IA64_PFS_REGNUM);
 
index b4ee7775b763d5a080ee8eee00ce59c714c70eb2..b1bc3ed037b7dae2d123f526cd3995e34d821698 100644 (file)
@@ -390,7 +390,8 @@ m32r_init_extra_frame_info (struct frame_info *fi)
     {
       /* We need to setup fi->frame here because run_stack_dummy gets it wrong
          by assuming it's always FP.  */
-      fi->frame = generic_read_register_dummy (fi->pc, fi->frame, SP_REGNUM);
+      fi->frame = deprecated_read_register_dummy (fi->pc, fi->frame,
+                                                 SP_REGNUM);
       fi->framesize = 0;
       return;
     }
@@ -462,7 +463,7 @@ m32r_find_callers_reg (struct frame_info *fi, int regnum)
 {
   for (; fi; fi = fi->next)
     if (PC_IN_CALL_DUMMY (fi->pc, fi->frame, fi->frame))
-      return generic_read_register_dummy (fi->pc, fi->frame, regnum);
+      return deprecated_read_register_dummy (fi->pc, fi->frame, regnum);
     else if (fi->fsr.regs[regnum] != 0)
       return read_memory_integer (fi->fsr.regs[regnum],
                                  REGISTER_RAW_SIZE (regnum));
@@ -554,7 +555,7 @@ CORE_ADDR
 m32r_frame_saved_pc (struct frame_info *fi)
 {
   if (PC_IN_CALL_DUMMY (fi->pc, fi->frame, fi->frame))
-    return generic_read_register_dummy (fi->pc, fi->frame, PC_REGNUM);
+    return deprecated_read_register_dummy (fi->pc, fi->frame, PC_REGNUM);
   else
     return m32r_find_callers_reg (fi, RP_REGNUM);
 }
index a53aaa00c928a2c716bcd5f6562328e739b75662..395bb44f8a691ee87c5be958dcfb08e7491b90ce 100644 (file)
@@ -756,7 +756,7 @@ mcore_find_callers_reg (struct frame_info *fi, int regnum)
   for (; fi != NULL; fi = fi->next)
     {
       if (PC_IN_CALL_DUMMY (fi->pc, fi->frame, fi->frame))
-       return generic_read_register_dummy (fi->pc, fi->frame, regnum);
+       return deprecated_read_register_dummy (fi->pc, fi->frame, regnum);
       else if (fi->saved_regs[regnum] != 0)
        return read_memory_integer (fi->saved_regs[regnum],
                                    REGISTER_SIZE);
@@ -772,7 +772,7 @@ mcore_frame_saved_pc (struct frame_info * fi)
 {
 
   if (PC_IN_CALL_DUMMY (fi->pc, fi->frame, fi->frame))
-    return generic_read_register_dummy (fi->pc, fi->frame, PC_REGNUM);
+    return deprecated_read_register_dummy (fi->pc, fi->frame, PC_REGNUM);
   else
     return mcore_find_callers_reg (fi, PR_REGNUM);
 }
@@ -1049,7 +1049,7 @@ mcore_init_extra_frame_info (int fromleaf, struct frame_info *fi)
     {
       /* We need to setup fi->frame here because run_stack_dummy gets it wrong
          by assuming it's always FP.  */
-      fi->frame = generic_read_register_dummy (fi->pc, fi->frame, SP_REGNUM);
+      fi->frame = deprecated_read_register_dummy (fi->pc, fi->frame, SP_REGNUM);
     }
   else
     mcore_analyze_prologue (fi, 0, 0);
index f661861827270c10b8da668e5494744b4c023c40..2df49e136fae00f316ffdd2bd742287041fb0ad0 100644 (file)
@@ -1511,7 +1511,7 @@ rs6000_frame_saved_pc (struct frame_info *fi)
     return read_memory_addr (fi->frame + SIG_FRAME_PC_OFFSET, wordsize);
 
   if (PC_IN_CALL_DUMMY (fi->pc, fi->frame, fi->frame))
-    return generic_read_register_dummy (fi->pc, fi->frame, PC_REGNUM);
+    return deprecated_read_register_dummy (fi->pc, fi->frame, PC_REGNUM);
 
   func_start = get_pc_function_start (fi->pc);
 
index 49a15a2f46ab12172738a124603998509a31f66a..f19e4ddfdd8c9fcc91a22bbe4ba1adaa4f1fcb25 100644 (file)
@@ -956,7 +956,7 @@ s390_frame_saved_pc_nofix (struct frame_info *fi)
     return fi->extra_info->saved_pc;
 
   if (deprecated_generic_find_dummy_frame (fi->pc, fi->frame))
-    return generic_read_register_dummy (fi->pc, fi->frame, S390_PC_REGNUM);
+    return deprecated_read_register_dummy (fi->pc, fi->frame, S390_PC_REGNUM);
 
   s390_frame_init_saved_regs (fi);
   if (fi->extra_info)
@@ -1010,8 +1010,8 @@ s390_frame_chain (struct frame_info *thisframe)
   CORE_ADDR prev_fp = 0;
 
   if (deprecated_generic_find_dummy_frame (thisframe->pc, thisframe->frame))
-    return generic_read_register_dummy (thisframe->pc, thisframe->frame,
-                                        S390_SP_REGNUM);
+    return deprecated_read_register_dummy (thisframe->pc, thisframe->frame,
+                                          S390_SP_REGNUM);
   else
     {
       int sigreturn = 0;
index b133b035f6b62193219e4736fd2eb3d4e316656a..7ac5b9ef57f3bc8924fc2a920cede5b5469cf234 100644 (file)
@@ -986,7 +986,7 @@ sh_find_callers_reg (struct frame_info *fi, int regnum)
     if (PC_IN_CALL_DUMMY (fi->pc, fi->frame, fi->frame))
       /* When the caller requests PR from the dummy frame, we return PC because
          that's where the previous routine appears to have done a call from. */
-      return generic_read_register_dummy (fi->pc, fi->frame, regnum);
+      return deprecated_read_register_dummy (fi->pc, fi->frame, regnum);
     else
       {
        FRAME_INIT_SAVED_REGS (fi);
@@ -1008,7 +1008,7 @@ sh64_get_saved_pr (struct frame_info *fi, int pr_regnum)
     if (PC_IN_CALL_DUMMY (fi->pc, fi->frame, fi->frame))
       /* When the caller requests PR from the dummy frame, we return PC because
          that's where the previous routine appears to have done a call from. */
-      return generic_read_register_dummy (fi->pc, fi->frame, pr_regnum);
+      return deprecated_read_register_dummy (fi->pc, fi->frame, pr_regnum);
     else
       {
        FRAME_INIT_SAVED_REGS (fi);
@@ -1722,11 +1722,11 @@ sh_init_extra_frame_info (int fromleaf, struct frame_info *fi)
     {
       /* We need to setup fi->frame here because run_stack_dummy gets it wrong
          by assuming it's always FP.  */
-      fi->frame = generic_read_register_dummy (fi->pc, fi->frame,
-                                              SP_REGNUM);
-      fi->extra_info->return_pc = generic_read_register_dummy (fi->pc,
-                                                              fi->frame,
-                                                              PC_REGNUM);
+      fi->frame = deprecated_read_register_dummy (fi->pc, fi->frame,
+                                                 SP_REGNUM);
+      fi->extra_info->return_pc = deprecated_read_register_dummy (fi->pc,
+                                                                 fi->frame,
+                                                                 PC_REGNUM);
       fi->extra_info->f_offset = -(CALL_DUMMY_LENGTH + 4);
       fi->extra_info->leaf_function = 0;
       return;
@@ -1754,10 +1754,10 @@ sh64_init_extra_frame_info (int fromleaf, struct frame_info *fi)
     {
       /* We need to setup fi->frame here because run_stack_dummy gets it wrong
          by assuming it's always FP.  */
-      fi->frame = generic_read_register_dummy (fi->pc, fi->frame,
-                                              SP_REGNUM);
+      fi->frame = deprecated_read_register_dummy (fi->pc, fi->frame,
+                                                 SP_REGNUM);
       fi->extra_info->return_pc = 
-       generic_read_register_dummy (fi->pc, fi->frame, PC_REGNUM);
+       deprecated_read_register_dummy (fi->pc, fi->frame, PC_REGNUM);
       fi->extra_info->f_offset = -(CALL_DUMMY_LENGTH + 4);
       fi->extra_info->leaf_function = 0;
       return;
index 3752dced66bc804c2af1538a2f7e2a14ab4ed1d5..03ae1618d31a01891e96935ef5bdfa47cc138b1a 100644 (file)
@@ -805,7 +805,7 @@ v850_find_callers_reg (struct frame_info *fi, int regnum)
 {
   for (; fi; fi = fi->next)
     if (PC_IN_CALL_DUMMY (fi->pc, fi->frame, fi->frame))
-      return generic_read_register_dummy (fi->pc, fi->frame, regnum);
+      return deprecated_read_register_dummy (fi->pc, fi->frame, regnum);
     else if (fi->saved_regs[regnum] != 0)
       return read_memory_unsigned_integer (fi->saved_regs[regnum],
                                           v850_register_raw_size (regnum));
@@ -1014,7 +1014,7 @@ CORE_ADDR
 v850_frame_saved_pc (struct frame_info *fi)
 {
   if (PC_IN_CALL_DUMMY (fi->pc, fi->frame, fi->frame))
-    return generic_read_register_dummy (fi->pc, fi->frame, E_PC_REGNUM);
+    return deprecated_read_register_dummy (fi->pc, fi->frame, E_PC_REGNUM);
   else
     return v850_find_callers_reg (fi, E_RP_REGNUM);
 }
index d3583139c63339e0de5d592c19421099899e232d..b08808563f241b2af0b11edb173a5d1973f0f722 100644 (file)
@@ -758,7 +758,8 @@ xstormy16_frame_saved_pc (struct frame_info *fi)
 
   if (PC_IN_CALL_DUMMY (fi->pc, fi->frame, fi->frame))
     {
-      saved_pc = generic_read_register_dummy (fi->pc, fi->frame, E_PC_REGNUM);
+      saved_pc = deprecated_read_register_dummy (fi->pc, fi->frame,
+                                                E_PC_REGNUM);
     }
   else
     {