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.
This commit is contained in:
Stan Shebs
1995-02-02 00:10:50 +00:00
parent adad95c056
commit e3be225eb4
6 changed files with 155 additions and 185 deletions

View File

@@ -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