coffread.c and one-line functions

Stan Shebs shebs@cygnus.com
Wed Apr 14 12:10:00 GMT 1999


   Date: Thu, 8 Apr 1999 06:50:03 +0200 (CEST)
   From: "Philippe De Muyter" <phdm@macqel.be>

   Thu Apr  8 06:26:12 1999  Philippe De Muyter  <phdm@macqel.be>

	   * breakpoint.c (maintenance_info_breakpoints): Function made static
	   to match previous prototype.
	   * coffread.c (coff_record_line): Static function removed.
	   (enter_linenos): Call `record_line' instead of `coff_record_line'.
	   (FILE-LEVEL, coff_start_symtab, coff_end_symtab): `coff_record_line'
	   -related stuff removed.
	   (coff_symfile_read): Redundant statement removed.
	   (coff_symtab_read): `record_line' is now called with the first line
	   number of each function, given by the ".bf" symbol.  This solves
	   the line-number bug for one-line functions.

This all looks plausible to me, I will install it into the repository.
I especially like the part where redundant code has been removed!

								Stan




More information about the Gdb-patches mailing list