Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: "Maciej W. Rozycki" <macro@codesourcery.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH] microMIPS support
Date: Thu, 26 Apr 2012 14:14:00 -0000	[thread overview]
Message-ID: <83haw6io8k.fsf@gnu.org> (raw)
In-Reply-To: <alpine.DEB.1.10.1204252339450.19835@tp.orcam.me.uk>

> Date: Thu, 26 Apr 2012 14:34:12 +0100
> From: "Maciej W. Rozycki" <macro@codesourcery.com>
> CC: <gdb-patches@sourceware.org>
> 
> On Wed, 25 Apr 2012, Eli Zaretskii wrote:
> 
> > > +@item set mips compression @var{arg}
> > > +@kindex set mips compression
> > > +@cindex MIPS code compression
> > 
> > Please use lower-case "mips" in the @cindex entry as well.
> 
>  It is a proper name, why?  All the other places capitalise it correctly, 
> e.g.:
> 
> @kindex set mips mask-address
> @cindex MIPS addresses, masking
> 
> and likewise for other proper names, e.g. AIX.

Index entries should all start with lower-case letters, otherwise the
index sorting is unpredictable (in non-US locales).

> > I would suggest to use either @acronym{ISA} or @sc{isa} (and the same
> > with "MIPS16" and "MIPS"), since they will look better in print.  Try
> > both, produce the PDF version of the manual, and keep the one you like
> > best.
> 
>  Hmm, there is no existing place that uses any formatting whatever for 
> "MIPS" or any derivatives (see e.g. "MIPS ABI" just above), except from 
> @code{MIPS32} used in a single place to refer to a packet format.  The 
> same stands for other processor architectures or names of instruction 
> sets.  I am not trying to say that I disagree with your suggestion as is, 
> only asking why you think I should be making these changes to my patch?

Why not?  It's TRT to do.

>  FWIW, I can't tell the difference between text rendered with no 
> formatting and the @sc macro

In the PDF and DVI output, @sc{isa} should yield a smaller font.
Maybe you used @sc{ISA}?

> As it stands I'd prefer to keep the formatting consistent through the 
> manual.

There's no reason to consistently do the wrong thing.  Every 1000-mile
journey begins with the first step.

> > > +@subsubsection Breakpoint Kinds
> > > +
> > > +These breakpoint kinds are defined for the @samp{Z0} and @samp{Z1} packets.
> > 
> > I'd prefer to have a @node here; subsections without a node are
> > possible, but are harder to find.
> > 
> > Also, a @cindex entry here would be good; think about someone who'd
> > like to find this information quickly by searching the index.
> 
>  I copied the layout from the "Register Packet Format" subsubsection that 
> immediately precedes; actually the whole section lacks any subnodes.  I 
> now recall a similar discussion a while ago about another patch; this 
> change originally predates that discussion.  Sorry for missing that.
> 
>  However in this case the whole section would have to be updated 
> throughout, it does not make sense to have a subnode just for one of the 
> subsubsections, and revamping the whole section does not belong to this 
> change.

I didn't ask you to revamp the entire section.  Even if the rest of
the section will never be fixed, it still makes sense to not increase
the amount of node-less subsections.

>  And last but not least I am not even sure if splitting this particular 
> section into subpages makes sense in the first place.

As long as we keep the subsection, the printed version of the manual
will layout it separately anyway, even if the Info version doesn't.

> Nesting too deep can be frustrating too, and here you'd have to have
> two intermediate pages with node lists only for just a couple lines'
> worth of nodes.

I can go with removing the subsection altogether, if you don't feel
strongly with keeping it.

But if we keep the subsection, I'd like to have a node there.

>  I think index references would better be added separately too -- these 
> would be "ARM Breakpoint Kinds," "MIPS Register Packet Format" and "MIPS 
> Breakpoint Kinds," respectively.

Sorry, I don't follow.  Please elaborate.

> > OK with those changes.
> 
>  Well, as you can see I have troubles to agree, sorry.

How can I convince you?

> > > +  add_setshow_enum_cmd ("compression", class_obscure, mips_compression_strings,
> > > +			&mips_compression_string, _("\
> > > +Set the compressed ISA encoding used."), _("\
> > > +Show the compressed ISA encoding used."), _("\
> > 
> > I'd mention microMIPS in the doc strings, as in
> > 
> >  Set the compressed ISA encoding used by microMIPS binaries.
> 
>  Err, that's not the point of the setting in both aspects.  First, it's 
> not specific to microMIPS code as its very purpose is to switch between 
> MIPS16 and microMIPS encoding that's mutually exclusive.

OK, then how about "MIPS" instead of "microMIPS"?

> Second, it's 
> only used where no binary is available (usually selected with "file" or 
> suchlike), e.g. ROM contents:
> 
> (gdb) target remote foo
> (gdb) x/i $pc
> (gdb) stepi
> 
> etc.

Then how about "executables" or "executable code" instead of
"binaries"?

> I agree the description is a bit lacking, but I have also decided 
> the verbose output from:
> 
> (gdb) help set mips compression
> (gdb) help show mips compression
> 
> (which is the same as I pasted in NEWS) is good enough.  Do you think it 
> is not?

The thing is, commands that display only the first line of the doc
string, such as "apropos", will not show the rest of the text.  So the
user will just see

 set mips compression -- Set the compressed ISA encoding used.

This looks too vague to me.


  reply	other threads:[~2012-04-26 14:04 UTC|newest]

Thread overview: 43+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-24 21:18 Maciej W. Rozycki
2012-04-25  6:20 ` Eli Zaretskii
2012-04-26 13:54   ` Maciej W. Rozycki
2012-04-26 14:14     ` Eli Zaretskii [this message]
2012-04-26 18:03       ` Maciej W. Rozycki
2012-04-26 20:39         ` Eli Zaretskii
2012-04-27 18:16           ` Maciej W. Rozycki
2012-04-27 18:24             ` Eli Zaretskii
     [not found]               ` <alpine.DEB.1.10.1204302334520.19835@tp.orcam.me.uk>
2012-05-02 16:39                 ` Eli Zaretskii
2012-05-17 15:07                   ` Maciej W. Rozycki
2012-05-17 16:10                     ` Eli Zaretskii
2012-05-18 23:13                       ` Maciej W. Rozycki
2012-05-19  8:20                         ` Eli Zaretskii
2012-04-25 13:13 ` Yao Qi
2012-04-25 15:57   ` Maciej W. Rozycki
2012-04-25 15:54 ` Joel Brobecker
2012-04-25 17:18   ` Maciej W. Rozycki
2012-04-25 18:12     ` Joel Brobecker
2012-04-25 18:27       ` Maciej W. Rozycki
2012-04-26 18:38 ` Jan Kratochvil
2012-04-26 19:04   ` Maciej W. Rozycki
2012-04-26 19:29     ` Jan Kratochvil
2012-04-26 21:59       ` Maciej W. Rozycki
2012-04-27  7:11         ` Jan Kratochvil
2012-04-27 15:14           ` Maciej W. Rozycki
2012-04-27 15:29             ` Pedro Alves
2012-04-27 15:46               ` Maciej W. Rozycki
2012-04-27 15:54             ` Tom Tromey
2012-05-18 23:53     ` Maciej W. Rozycki
2012-05-18 21:32 ` [PATCH] microMIPS support (Linux signal trampolines) Maciej W. Rozycki
2012-05-18 22:25   ` Mark Kettenis
2012-05-21 14:33     ` Maciej W. Rozycki
2012-06-11 10:32       ` [PING][PATCH] " Maciej W. Rozycki
2014-09-28 11:12       ` [PATCH] " Maciej W. Rozycki
2014-10-06  0:46         ` [PING][PATCH] " Maciej W. Rozycki
2014-10-13 12:24           ` [PING^2][PATCH] " Maciej W. Rozycki
2014-10-20 17:01             ` [PING^3][PATCH] " Maciej W. Rozycki
2014-11-03 16:04               ` [PING^4][PATCH] " Maciej W. Rozycki
2014-11-16  8:58         ` [PATCH] " Joel Brobecker
2014-12-03 21:00           ` Maciej W. Rozycki
2012-05-18 23:47 ` [PATCH] microMIPS support Maciej W. Rozycki
2012-05-19  8:52   ` Eli Zaretskii
2012-05-22  0:07     ` Maciej W. Rozycki

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=83haw6io8k.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=gdb-patches@sourceware.org \
    --cc=macro@codesourcery.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