From a208b0cb2b6cf223e90b2048fba1a4eee63e3db9 Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Thu, 11 Jul 2002 19:25:13 +0000 Subject: [PATCH] * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type. Make static. * arm-tdep.c (arm_register_name): Make return type constant. --- gdb/ChangeLog | 7 +++++++ gdb/arm-tdep.c | 2 +- gdb/cris-tdep.c | 4 ++-- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 260b64f5f18..20a8af771f8 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,10 @@ +2002-07-11 Andrew Cagney + + * 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 * win32-nat.c (has_detach_ability): Convert to strict ISO C diff --git a/gdb/arm-tdep.c b/gdb/arm-tdep.c index e316cf7c2a2..ba213ae6da4 100644 --- a/gdb/arm-tdep.c +++ b/gdb/arm-tdep.c @@ -2503,7 +2503,7 @@ set_disassembly_flavor_sfunc (char *args, int from_tty, } /* Return the ARM register name corresponding to register I. */ -static char * +static const char * arm_register_name (int i) { return arm_register_names[i]; diff --git a/gdb/cris-tdep.c b/gdb/cris-tdep.c index f552de98af0..02605f0a4f1 100644 --- a/gdb/cris-tdep.c +++ b/gdb/cris-tdep.c @@ -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); } -- 2.30.2