diff options
author | Jim Kingdon <jkingdon@engr.sgi.com> | 1994-05-13 18:18:57 +0000 |
---|---|---|
committer | Jim Kingdon <jkingdon@engr.sgi.com> | 1994-05-13 18:18:57 +0000 |
commit | 1c95d7ab2e12e00756d21ef44c7539f8f9edc56f (patch) | |
tree | 1366d0687b8ad6294d7cbb151227f81b4f3280da /gdb/os9kread.c | |
parent | f3e72e3771ea66fb319fe96b96403ef212dbfb50 (diff) | |
download | gdb-1c95d7ab2e12e00756d21ef44c7539f8f9edc56f.zip gdb-1c95d7ab2e12e00756d21ef44c7539f8f9edc56f.tar.gz gdb-1c95d7ab2e12e00756d21ef44c7539f8f9edc56f.tar.bz2 |
gcc -Wall lint:
* breakpoint.c (watchpoint_check): Remove unused variable b.
* stack.c (print_frame_info): Move sp and buf inside #if.
* eval.c (evaluate_subexp): Remove unused variables pp,
mangle_ptr, ptr, and mangle_tstr.
* valarith.c (value_x_binop): Remove unused variables mangle_tstr
and mangle_ptr.
* symtab.c (lookup_symtab): Put variable copy inside #if.
(decode_line_1): Put variable q1 inside #if 0.
* target.h: Declare target_link.
* infrun.c (wait_for_inferior): Remove unused variables signame.
* remote.c (remote_resume): Remove unused variable name.
* c-exp.y (parse_number): Parenthesize operand of shift.
* dbxread.c (record_minimal_symbol): Parenthesize operand of &&
(this is a semantic change, the warning seems to have detected a bug).
* dbxread.c (end_psymtab): Move variable p1 inside #if.
* coffread.c: Move variable temptype inside #if.
* ch-typeprint.c (chill_type_print_base): Remove unused variable
name.
* ch-valprint.c: #include typeprint.h and ch-lang.h.
(chill_val_print): Remove unused variable in_range.
(chill_val_print): Remove statement "length > TYPE_LENGTH (type);".
(chill_val_print): Add default case for switch.
* stabsread.h: Declare stabsect_build_psymtabs.
* os9kread.c (read_minimal_symbols): Make this return void.
(os9k_symfile_read): Remove unused variables stb_exist and val.
(os9k_symfile_init): Remove unused variable val.
(fill_sym): Remove unused variable id.
(read_os9k_psymtab): Put variable back_to inside #if 0. Remove
unused variable nsl.
Remove unused variable symfile_bfd.
#if 0 unused variables lbrac_unmatched_complaint and
lbrac_mismatch_complaint.
Remove declaration for non-existent function os9k_next_symbol_text.
* annotate.c, annotate.h: New files, containing a function for
each annotation which outputs it.
* Move breakpoints_changed from breakpoint.c to annotate.c.
* breakpoint.c, blockframe.c, infrun.c, cp-valprint.c, main.c,
printcmd.c, source.c, stack.c, utils.c, valprint.c:
Use annotate.c functions to output annotations.
* Makefile.in (OBS): Add annotate.o.
Diffstat (limited to 'gdb/os9kread.c')
-rw-r--r-- | gdb/os9kread.c | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/gdb/os9kread.c b/gdb/os9kread.c index f1d7912..cf728fe 100644 --- a/gdb/os9kread.c +++ b/gdb/os9kread.c @@ -105,9 +105,6 @@ extern int info_verbose; extern int previous_stab_code; -/* The BFD for this file -- implicit parameter to next_symbol_text. */ -static bfd *symfile_bfd; - /* Name of last function encountered. Used in Solaris to approximate object file boundaries. */ static char *last_function_name; @@ -125,12 +122,13 @@ extern struct complaint repeated_header_complaint; extern struct complaint repeated_header_name_complaint; +#if 0 static struct complaint lbrac_unmatched_complaint = {"unmatched Increment Block Entry before symtab pos %d", 0, 0}; static struct complaint lbrac_mismatch_complaint = {"IBE/IDE symbol mismatch at symtab pos %d", 0, 0}; - +#endif /* Local function prototypes */ static void @@ -149,9 +147,6 @@ read_os9k_psymtab PARAMS ((struct section_offsets *, struct objfile *, static void init_psymbol_list PARAMS ((struct objfile *)); -static char * -os9k_next_symbol_text PARAMS ((void)); - static int fill_sym PARAMS ((FILE *, bfd *)); @@ -265,7 +260,7 @@ struct stbsymbol { }; #define STBSYMSIZE 10 -static int +static void read_minimal_symbols(objfile, section_offsets) struct objfile *objfile; struct section_offsets *section_offsets; @@ -320,7 +315,7 @@ char buf[64], buf1[128]; off += STBSYMSIZE; }; install_minimal_symbols (objfile); - return 1; + return; } /* Scan and build partial symbols for a symbol file. @@ -340,8 +335,6 @@ os9k_symfile_read (objfile, section_offsets, mainline) int mainline; /* FIXME comments above */ { bfd *sym_bfd; - int val; - int stb_exist; struct cleanup *back_to; sym_bfd = objfile->obfd; @@ -401,7 +394,6 @@ static void os9k_symfile_init (objfile) struct objfile *objfile; { - int val; bfd *sym_bfd = objfile->obfd; char *name = bfd_get_filename (sym_bfd); char dbgname[512], stbname[512]; @@ -502,7 +494,6 @@ fill_sym (dbg_file, abfd) FILE *dbg_file; bfd *abfd; { -short id; short si, nmask; long li; int ii; @@ -606,10 +597,11 @@ read_os9k_psymtab (section_offsets, objfile, text_addr, text_size) { register struct internal_symstruct *bufp = 0; /* =0 avoids gcc -Wall glitch*/ register char *namestring; - int nsl; int past_first_source_file = 0; CORE_ADDR last_o_file_start = 0; +#if 0 struct cleanup *back_to; +#endif bfd *abfd; FILE *fp; |