From: "Eli Zaretskii" <eliz@gnu.org>
To: Joel Brobecker <brobecker@gnat.com>
Cc: cagney@gnu.org, gdb@sources.redhat.com
Subject: Re: Discussion: Formalizing the deprecation process in GDB
Date: Fri, 08 Oct 2004 10:38:00 -0000 [thread overview]
Message-ID: <01c4ad1e$Blat.v2.2.2$b23294e0@zahav.net.il> (raw)
In-Reply-To: <20041007024047.GB1282@gnat.com> (message from Joel Brobecker on Wed, 6 Oct 2004 19:40:48 -0700)
> Date: Wed, 6 Oct 2004 19:40:48 -0700
> From: Joel Brobecker <brobecker@gnat.com>
> Cc: Andrew Cagney <cagney@gnu.org>, gdb@sources.redhat.com
>
> I do agree with Andrew that the place were developers search
> for documentation is the code. I would love to see a lot of the
> documentation contained in gdbint.texinfo be moved as comments
> into the code. Having the documentation embedded inside the code
> is very convenient, and also where I have been trained to look
> first.
>
> This does not mean that I am suggesting that we get rid of gdbint
> entirely. I see chapters and sections that can only be placed in
> a separate documentation, such as how to add support for a new
> host for instance. But the documentation about partial symbol
> tables, for instance, would be much more useful directly in
> symtab.h or symtab.c.
The problem with having documentation in the code is that there's no
easy way of organizing such a documentation: no cross-references, no
chapter/section/subsection structure, and no index. For someone who
is on the learning curve looking for a more-or-less complete
description of a specific GDB mechanism, let alone a high-level
architectural overview, these disadvantages are IMO significant and
grave.
In addition, code comments in many cases have a loophole view of the
code, and so higher-level aspects tend to be not documented at all.
Code comments are also not reviewed as formally as docs submissions
are.
As an illustration to these deficiencies, please see how many
questions we have on this mailing list asking to explain how some
specific GDB feature works, and how they are almost _never_ answered
by pointing people to the code comments, nor to the docs. Does anyone
need a better demonstration of the fact that our code is largely
undocumented?
If we are willing to move in the direction of making the docs and the
code closer (and assuming volunteers will step forward to do the job),
we could look at the various systems that generate code and manuals
from the same source. Failing that, I'd rather support having _more_
of the explanations in the manual and less in the comments, and adding
references in the comments to relevant gdbint.texinfo places. I think
that on balance this is a better alternative than the opposite one,
where we prefer comments to Texinfo docs.
> I don't know about others, but I have read the gdbint manual once
> from cover to cover almost 4 years ago, and never refered to it
> anymore.
That is simply because of the poor quality (in terms of coverage of
the relevant subject matter) of gdbint.texinfo. We should do much
better.
next prev parent reply other threads:[~2004-10-08 10:10 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
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 [this message]
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='01c4ad1e$Blat.v2.2.2$b23294e0@zahav.net.il' \
--to=eliz@gnu.org \
--cc=brobecker@gnat.com \
--cc=cagney@gnu.org \
--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