public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
From: "Eli Zaretskii" <eliz@gnu.org>
To: Andrew Cagney <cagney@gnu.org>
Cc: dk@artimi.com, brobecker@gnat.com, gdb@sources.redhat.com
Subject: Re: Discussion: Formalizing the deprecation process in GDB
Date: Fri, 08 Oct 2004 11:45:00 -0000	[thread overview]
Message-ID: <01c4ad22$Blat.v2.2.2$73afa240@zahav.net.il> (raw)
In-Reply-To: <416562C9.90801@gnu.org> (message from Andrew Cagney on Thu, 07 Oct 2004 11:37:45 -0400)

> Date: Thu, 07 Oct 2004 11:37:45 -0400
> From: Andrew Cagney <cagney@gnu.org>
> Cc: gdb@sources.redhat.com
> 
> A system that is being continuously re-factored is not well suited for 
> detailed internals documentation - the effort is wasted.

Can we say that the features that are not going to change any time
soon are sufficiently documented?  For example, the CLI is not going
to be refactored any time soon (AFAIK), and yet its documentation
includes only 3 functions out of at least 10 it exports.  The
completion features (I mean their GDB-specific aspects, not the
general Readline mechanism) are not documented at all.

Another example is DWARF-2 support, whose ``documentation'' is 2
rather unhelpful sentences.

Core files are completely undocumented.

Etc., etc.  So I submit that our internal documentation's coverage is
very poor even in those non-contradictory parts where refactoring is
not a problem at all.

As for the refactoring factor (pun intended): I don't agree with the
``wasted effort'' argument.  Some areas are refactored very slowly, so
clearly things are quasy-stable enough to have them documented even to
the detailed level.  And in those areas which are in transition, we
can always decide to stop at the sufficiently high level to avoid
wasting the effort.  So this is IMHO not an excuse for failing to
document even the areas where development and change are facts of
life.

> Instead the high level architecture and medium level object models
> that are important.

Do we have these?

> There is no "migration" path.  The correct approach is:
> - delete all deprecated code
> - build
> - run testsuite
> - add a missing architecture vector method
> - repeat
> Instead of migrating, trying to reproduce each refactoring step, you 
> should leap frog.

As Dave explained, this paradigm is inappropriate for at least the
case of someone who is trying to introduce a new feature, not refactor
an old one.  In that case, there's no guidance a developer can find to
what code she should be using instaed of the deprecated one.

  parent reply	other threads:[~2004-10-08 10:38 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-27 17:55 Joel Brobecker
2004-09-27 20:35 ` Eli Zaretskii
2004-10-06  6:14 ` Andrew Cagney
2004-10-06 13:39   ` Eli Zaretskii
2004-10-07  4:48     ` Joel Brobecker
2004-10-07 14:27       ` Dave Korn
2004-10-07 15:12         ` Joel Brobecker
2004-10-07 16:16           ` Andrew Cagney
2004-10-07 18:50             ` Dave Korn
2004-10-07 16:14         ` Andrew Cagney
2004-10-07 18:08           ` Dave Korn
2004-10-07 19:18             ` Joel Brobecker
2004-10-07 19:28               ` Dave Korn
2004-10-08  7:08                 ` Joel Brobecker
2004-10-08 12:13                   ` Eli Zaretskii
2004-10-08 12:05               ` Eli Zaretskii
2004-10-08  8:54             ` Fabian Cenedese
2004-10-08 11:45           ` Eli Zaretskii [this message]
2004-10-08 19:22             ` Andrew Cagney
2004-10-10 21:31               ` Eli Zaretskii
2004-10-08 10:45         ` Eli Zaretskii
2004-10-08 13:31           ` Dave Korn
2004-10-08 13:38             ` Eli Zaretskii
2004-10-08 13:43               ` Dave Korn
2004-10-08 13:44                 ` Dave Korn
2004-10-08 19:16                 ` Eli Zaretskii
2004-10-08 19:45                   ` Eli Zaretskii
2004-10-08 22:10             ` Andrew Cagney
2004-10-08 10:38       ` Eli Zaretskii
2004-10-11 15:11     ` Andrew Cagney
2004-10-12  7:34       ` Eli Zaretskii
2004-10-12 13:42         ` Mark Kettenis

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='01c4ad22$Blat.v2.2.2$73afa240@zahav.net.il' \
    --to=eliz@gnu.org \
    --cc=brobecker@gnat.com \
    --cc=cagney@gnu.org \
    --cc=dk@artimi.com \
    --cc=gdb@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).