* symtab.c (find_pc_line, find_line_common),
authorJim Kingdon <jkingdon@engr.sgi.com>
Thu, 2 Sep 1993 00:24:46 +0000 (00:24 +0000)
committerJim Kingdon <jkingdon@engr.sgi.com>
Thu, 2 Sep 1993 00:24:46 +0000 (00:24 +0000)
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/buildsym.c

index be13a9cd8ace47cadd13e968b210bedcc19a8198..4ba512f998e02a5a776aaf8eddffe8ea4ca58f8e 100644 (file)
@@ -529,7 +529,8 @@ pop_subfile ()
 }
 
 \f
-/* 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)