2003-11-23 Andrew Cagney <cagney@redhat.com>
authorAndrew Cagney <cagney@redhat.com>
Sun, 23 Nov 2003 21:49:12 +0000 (21:49 +0000)
committerAndrew Cagney <cagney@redhat.com>
Sun, 23 Nov 2003 21:49:12 +0000 (21:49 +0000)
* frame.c (frame_unwind_signed_register): Delete function.
* frame.h (frame_unwind_register_signed): Delete declaration.
* mips-tdep.c (mips_frame_saved_pc): Use frame_unwind_register_signed.

gdb/ChangeLog
gdb/frame.c
gdb/frame.h
gdb/mips-tdep.c

index 38a2a6aa5afe296088cf2bdff6c7c7140a6aad24..44eeada9d946e81ad8889223f6c49bdad123270e 100644 (file)
@@ -1,5 +1,9 @@
 2003-11-23  Andrew Cagney  <cagney@redhat.com>
 
+       * frame.c (frame_unwind_signed_register): Delete function.
+       * frame.h (frame_unwind_register_signed): Delete declaration.
+       * mips-tdep.c (mips_frame_saved_pc): Use frame_unwind_register_signed.
+
        * arch-utils.h (generic_cannot_extract_struct_value_address):
        Delete declaration.
 
index 7f4c8aa7ba168c3bd1f9680ffcaa03e9b4cb4f54..5dc0705a0383e485b0c15b375ded9ced4e7bbc58 100644 (file)
@@ -663,15 +663,6 @@ get_frame_register_unsigned (struct frame_info *frame, int regnum)
   return frame_unwind_register_unsigned (frame->next, regnum);
 }
 
-void
-frame_unwind_signed_register (struct frame_info *frame, int regnum,
-                             LONGEST *val)
-{
-  char buf[MAX_REGISTER_SIZE];
-  frame_unwind_register (frame, regnum, buf);
-  (*val) = extract_signed_integer (buf, DEPRECATED_REGISTER_VIRTUAL_SIZE (regnum));
-}
-
 void
 frame_unwind_unsigned_register (struct frame_info *frame, int regnum,
                                ULONGEST *val)
index 4dc2fb15e048f16f4455a37c5af78b723aa3eff8..2a973086d1acc1e1a0565690d3d3d9369938acbd 100644 (file)
@@ -407,10 +407,6 @@ extern ULONGEST get_frame_register_unsigned (struct frame_info *frame,
                                             int regnum);
 
 
-/* Use frame_unwind_register_signed.  */
-extern void frame_unwind_signed_register (struct frame_info *frame,
-                                         int regnum, LONGEST *val);
-
 /* Use frame_unwind_register_signed.  */
 extern void frame_unwind_unsigned_register (struct frame_info *frame,
                                            int regnum, ULONGEST *val);
@@ -572,9 +568,7 @@ extern void show_frame_info (struct frame_info *, int, int, int);
 
 extern struct frame_info *block_innermost_frame (struct block *);
 
-/* 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.  */
+/* NOTE: cagney/2002-09-13: There is no need for this function.   */
 extern CORE_ADDR deprecated_read_register_dummy (CORE_ADDR pc,
                                                 CORE_ADDR fp, int);
 extern void generic_push_dummy_frame (void);
index 7ee7427d551292059c3b22e81c332a8cdeaa6e79..1088cdaa4a64d9eb905f3e80b5de96339cf4e343 100644 (file)
@@ -1777,10 +1777,8 @@ mips_frame_saved_pc (struct frame_info *frame)
 
   if (DEPRECATED_PC_IN_CALL_DUMMY (get_frame_pc (frame), 0, 0))
     {
-      LONGEST tmp;
       /* Always unwind the cooked PC register value.  */
-      frame_unwind_signed_register (frame, NUM_REGS + PC_REGNUM, &tmp);
-      saved_pc = tmp;
+      saved_pc = frame_unwind_register_signed (frame, NUM_REGS + PC_REGNUM);
     }
   else
     {