From: Jim Kingdon Date: Thu, 2 Sep 1993 00:24:46 +0000 (+0000) Subject: * symtab.c (find_pc_line, find_line_common), X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=be7d4f3f6dead60b99253c8a60341b3863d93099;p=binutils-gdb.git * symtab.c (find_pc_line, find_line_common), 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. --- diff --git a/gdb/buildsym.c b/gdb/buildsym.c index be13a9cd8ac..4ba512f998e 100644 --- a/gdb/buildsym.c +++ b/gdb/buildsym.c @@ -529,7 +529,8 @@ pop_subfile () } -/* Manage the vector of line numbers for each subfile. */ +/* Add a linetable entry for line number LINE and address PC to the line + vector for SUBFILE. */ void record_line (subfile, line, pc)