From c438b3af2a58c099512730b460c9298149548de6 Mon Sep 17 00:00:00 2001 From: Jim Kingdon Date: Wed, 1 Sep 1993 21:15:27 +0000 Subject: * symtab.h (struct linetable), xcoffread.c (arrange_linetable): Revise comments re linetable sorting. * buildsym.c (compare_line_numbers): Sort by pc, not by line. * coffread.c: Tell end_symtab to sort the line table. * coffread.c: Re-work a lot of the coff-specific stuff to use stuff in buildsym.c. This includes coff_finish_block, coff_context_stack, coff_local_symbols, coff_file_symbols, coff_global_symbols, coff_end_symtab and coff_add_symbol_to_list. (read_enum_type): Deal with it now that we have a "struct pending" not a "struct coff_pending". * buildsym.c (end_symtab): Don't realloc subfile->linetable. --- gdb/xcoffread.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gdb/xcoffread.c') diff --git a/gdb/xcoffread.c b/gdb/xcoffread.c index 28948d5..4abaee9 100644 --- a/gdb/xcoffread.c +++ b/gdb/xcoffread.c @@ -295,6 +295,8 @@ compare_lte (lte1, lte2) /* Give a line table with function entries are marked, arrange its functions in assending order and strip off function entry markers and return it in a newly created table. If the old one is good enough, return the old one. */ +/* FIXME: I think all this stuff can be replaced by just passing + sort_linevec = 1 to end_symtab. */ static struct linetable * arrange_linetable (oldLineTb) -- cgit v1.1