This is the mail archive of the gdb-patches@sourceware.cygnus.com mailing list for the GDB project. See the GDB home page for more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: coffread.c and one-line functions



   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