aboutsummaryrefslogtreecommitdiff
path: root/gdb/xcoffread.c
diff options
context:
space:
mode:
authorFred Fish <fnf@specifix.com>1996-07-30 06:50:23 +0000
committerFred Fish <fnf@specifix.com>1996-07-30 06:50:23 +0000
commit6e0949ae3e119553efaef22db600550316bf9b26 (patch)
treed2745debd241ed843fbcd057b4c2aa499fdce804 /gdb/xcoffread.c
parent80e0e92aaa620acae14e46a2b63f01cb29f21602 (diff)
downloadgdb-6e0949ae3e119553efaef22db600550316bf9b26.zip
gdb-6e0949ae3e119553efaef22db600550316bf9b26.tar.gz
gdb-6e0949ae3e119553efaef22db600550316bf9b26.tar.bz2
* 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.
Diffstat (limited to 'gdb/xcoffread.c')
-rw-r--r--gdb/xcoffread.c39
1 files changed, 37 insertions, 2 deletions
diff --git a/gdb/xcoffread.c b/gdb/xcoffread.c
index b088b03..731e90b 100644
--- a/gdb/xcoffread.c
+++ b/gdb/xcoffread.c
@@ -200,6 +200,18 @@ 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;