* cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
authorAndrew Cagney <cagney@redhat.com>
Thu, 11 Jul 2002 19:25:13 +0000 (19:25 +0000)
committerAndrew Cagney <cagney@redhat.com>
Thu, 11 Jul 2002 19:25:13 +0000 (19:25 +0000)
Make static.
* arm-tdep.c (arm_register_name): Make return type constant.

gdb/ChangeLog
gdb/arm-tdep.c
gdb/cris-tdep.c

index 260b64f5f182816e68f73330a323fc063d3509f2..20a8af771f8bdbd79ee8b8ca9e90cb6fe1a27247 100644 (file)
@@ -1,3 +1,10 @@
+2002-07-11  Andrew Cagney  <cagney@redhat.com>
+
+       * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
+       Make static.
+
+       * arm-tdep.c (arm_register_name): Make return type constant.
+
 2002-07-10  Andrew Cagney  <ac131313@redhat.com>
 
        * win32-nat.c (has_detach_ability): Convert to strict ISO C
index e316cf7c2a278ad39a1d40bcc903b3cf7760be69..ba213ae6da4b2af3f8ace93b1a5b4d197e5e6440 100644 (file)
@@ -2503,7 +2503,7 @@ set_disassembly_flavor_sfunc (char *args, int from_tty,
 }
 \f
 /* Return the ARM register name corresponding to register I.  */
-static char *
+static const char *
 arm_register_name (int i)
 {
   return arm_register_names[i];
index f552de98af057a68bfeb0916bb200ccbb6451564..02605f0a4f18786f8f8903e937a2683cec8dba7b 100644 (file)
@@ -774,8 +774,8 @@ cris_breakpoint_from_pc (CORE_ADDR *pcptr, int *lenptr)
 /* Returns the register SRP (subroutine return pointer) which must contain 
    the content of the register PC after a function call.  */
 
-CORE_ADDR
-cris_saved_pc_after_call (void)
+static CORE_ADDR
+cris_saved_pc_after_call (struct frame_info *frame)
 {
   return read_register (SRP_REGNUM);
 }