Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Retiring obsolete files
@ 1999-04-01  0:00 Stan Shebs
  1999-04-01  0:00 ` Jim Blandy
  0 siblings, 1 reply; 2+ messages in thread
From: Stan Shebs @ 1999-04-01  0:00 UTC (permalink / raw)
  To: gdb

One of the problems with maintaining GDB over a long period of time is
that, unlike GCC, GDB includes files that can only be compiled and run
on a particular host.  If the host is obsolete or simply scarce, it
becomes impossible to ensure that GDB's code for that host is still
correct, and in fact that code may actively mislead current and future
maintainers looking for examples of how to solve a problem.

I discussed this with RMS, and he wasn't keen to simply delete files,
for the reason that one doesn't necessarily know for sure that the
configuration no longer exists, and if someone wanted to revive it, it
might be very difficult to find a GDB release with the old files still
present.  However, he thought it would be OK to mark files as
obsolete.  So I came up with a compromise proposal that I'd like to
try out on people.

Files that seem to be obsolete first get marked with this sed script:

	sed -e 's,*/,*//*,g' -e 's,^,/* OBSOLETE ,' -e 's,$, */,'

This puts the word 'OBSOLETE' on every line, plus comments out all the
code, thus making its status obvious to readers, to grep, and to any
source analysis tools that might look inside a #if 0 ... #endif.  In
addition, the gdb/NEWS file gets a note to the effect that a file or
config is obsolete.  This situation lasts for one release.  Then, at
the time of the next release, if no one has come forward to save the
file, it gets deleted, and a note is made of that in NEWS.  Over time,
old junk will disappear from the source, thus making room for new junk. :-)

Opinions?  If no one objects, I will set this in motion for 4.18.

								Stan



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1999-04-01  0:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-04-01  0:00 Retiring obsolete files Stan Shebs
1999-04-01  0:00 ` Jim Blandy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox