From e3be225eb4b1f6317662be790f67ca8e291ef64f Mon Sep 17 00:00:00 2001 From: Stan Shebs Date: Thu, 2 Feb 1995 00:10:50 +0000 Subject: gcc -Wall lint. * alpha-tdep.c (alpha_in_lenient_prologue): Comment out. (after_prologue): Remove unused local b. * procfs.c (thread.h): Include. (pr_flag_table, pr_why_table, faults_table, siginfo_table): Use nested braces in initializer. * top.c (initialize_targets, initialize_utils): Declare. (locate_arg, insert_args): Add parens around tested assignments. * remote-utils.c (sr_scan_args): Remove decl of strtol. * remote.c (thread.h): Include. (remote_wait): Remove unused local p2. * sparc-tdep.c (fill_gregset, fill_fpregset): Remove decls of registers array. defs.h (stdlib.h): Include. (exit, perror, atoi, qsort, memcpy, memcmp): Don't declare. (fclose, atof, malloc, realloc, free, strchr, strrchr, strstr, strtok, strerror): Don't specify parameter types in declaration. --- gdb/alpha-tdep.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'gdb/alpha-tdep.c') diff --git a/gdb/alpha-tdep.c b/gdb/alpha-tdep.c index 08a296a..7dedb78 100644 --- a/gdb/alpha-tdep.c +++ b/gdb/alpha-tdep.c @@ -44,11 +44,15 @@ static alpha_extra_func_info_t heuristic_proc_desc PARAMS ((CORE_ADDR, CORE_ADDR, struct frame_info *)); -static alpha_extra_func_info_t find_proc_desc PARAMS ((CORE_ADDR, struct frame_info *)); +static alpha_extra_func_info_t find_proc_desc PARAMS ((CORE_ADDR, + struct frame_info *)); +#if 0 static int alpha_in_lenient_prologue PARAMS ((CORE_ADDR, CORE_ADDR)); +#endif -static void reinit_frame_cache_sfunc PARAMS ((char *, int, struct cmd_list_element *)); +static void reinit_frame_cache_sfunc PARAMS ((char *, int, + struct cmd_list_element *)); static CORE_ADDR after_prologue PARAMS ((CORE_ADDR pc, alpha_extra_func_info_t proc_desc)); @@ -382,7 +386,6 @@ after_prologue (pc, proc_desc) CORE_ADDR pc; alpha_extra_func_info_t proc_desc; { - struct block *b; struct symtab_and_line sal; CORE_ADDR func_addr, func_end; @@ -971,6 +974,7 @@ alpha_skip_prologue (pc, lenient) return pc + offset; } +#if 0 /* Is address PC in the prologue (loosely defined) for function at STARTADDR? */ @@ -982,6 +986,7 @@ alpha_in_lenient_prologue (startaddr, pc) CORE_ADDR end_prologue = alpha_skip_prologue (startaddr, 1); return pc >= startaddr && pc < end_prologue; } +#endif /* The alpha needs a conversion between register and memory format if the register is a floating point register and -- cgit v1.1