From: Fred Fish Date: Tue, 30 Jul 1996 06:50:23 +0000 (+0000) Subject: * xcoffread.c (compare_lte): Change prototype and function to X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6e0949ae3e119553efaef22db600550316bf9b26;p=binutils-gdb.git * xcoffread.c (compare_lte): Change prototype and function to be correct type for passing to qsort. (add_stab_to_list): Ifdef out unused function and prototype. (compare_lte): Add prototype (arrange_linetable): Ditto. (record_include_begin): Ditto. (record_include_end): Ditto. (process_linenos): Ditto. (xcoff_next_symbol_text): Ditto. (scan_xcoff_symtab): Ditto. (xcoff_initial_scan): Ditto. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index f901c0caae0..9d429bd9fb7 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,17 @@ Mon Jul 29 21:13:20 1996 Fred Fish + * xcoffread.c (compare_lte): Change prototype and function to + be correct type for passing to qsort. + (add_stab_to_list): Ifdef out unused function and prototype. + (compare_lte): Add prototype + (arrange_linetable): Ditto. + (record_include_begin): Ditto. + (record_include_end): Ditto. + (process_linenos): Ditto. + (xcoff_next_symbol_text): Ditto. + (scan_xcoff_symtab): Ditto. + (xcoff_initial_scan): Ditto. + * mips-tdep.c (mips_read_processor_type): Add parens around bitwise-and operands in comparison; previous expression always evaluated to 0 because of equality comparison of two constants. diff --git a/gdb/xcoffread.c b/gdb/xcoffread.c index b088b031834..731e90b0195 100644 --- a/gdb/xcoffread.c +++ b/gdb/xcoffread.c @@ -199,6 +199,18 @@ static struct complaint ef_complaint = static struct complaint eb_complaint = {"Mismatched .eb symbol ignored starting at symnum %d", 0, 0}; +static void +xcoff_initial_scan PARAMS ((struct objfile *, struct section_offsets *, int)); + +static void +scan_xcoff_symtab PARAMS ((struct section_offsets *, struct objfile *)); + +static char * +xcoff_next_symbol_text PARAMS ((struct objfile *)); + +static void +record_include_begin PARAMS ((struct coff_symbol *)); + static void enter_line_range PARAMS ((struct subfile *, unsigned, unsigned, CORE_ADDR, CORE_ADDR, unsigned *)); @@ -239,8 +251,22 @@ process_xcoff_symbol PARAMS ((struct coff_symbol *, struct objfile *)); static void read_xcoff_symtab PARAMS ((struct partial_symtab *)); +#if 0 static void add_stab_to_list PARAMS ((char *, struct pending_stabs **)); +#endif + +static int +compare_lte PARAMS ((const void *, const void *)); + +static struct linetable * +arrange_linetable PARAMS ((struct linetable *)); + +static void +record_include_end PARAMS ((struct coff_symbol *)); + +static void +process_linenos PARAMS ((CORE_ADDR, CORE_ADDR)); /* Translate from a COFF section number (target_index) to a SECT_OFF_* @@ -288,6 +314,8 @@ secnum_to_section (secnum, objfile) /* add a given stab string into given stab vector. */ +#if 0 + static void add_stab_to_list (stabname, stabvector) char *stabname; @@ -308,6 +336,9 @@ struct pending_stabs **stabvector; } (*stabvector)->stab [(*stabvector)->count++] = stabname; } + +#endif + /* Linenos are processed on a file-by-file basis. @@ -364,9 +395,12 @@ struct pending_stabs **stabvector; /* compare line table entry addresses. */ static int -compare_lte (lte1, lte2) - struct linetable_entry *lte1, *lte2; +compare_lte (lte1p, lte2p) + const void *lte1p; + const void *lte2p; { + struct linetable_entry *lte1 = (struct linetable_entry *) lte1p; + struct linetable_entry *lte2 = (struct linetable_entry *) lte2p; return lte1->pc - lte2->pc; } @@ -852,6 +886,7 @@ static char *raw_symbol; /* This is the function which stabsread.c calls to get symbol continuations. */ + static char * xcoff_next_symbol_text (objfile) struct objfile *objfile;