From: Eli Zaretskii <eliz@gnu.org>
To: Gaius Mulley <gaius@glam.ac.uk>
Cc: jimb@red-bean.com, gdb-patches@sources.redhat.com
Subject: Re: Enhanced language support for Modula-2
Date: Tue, 21 Feb 2006 20:50:00 -0000 [thread overview]
Message-ID: <u1wxwbfu7.fsf@gnu.org> (raw)
In-Reply-To: <87lkw5qaa9.fsf@j228-gm.comp.glam.ac.uk> (message from Gaius Mulley on 21 Feb 2006 10:24:46 +0000)
> Cc: gdb-patches@sources.redhat.com
> From: Gaius Mulley <gaius@glam.ac.uk>
> Date: 21 Feb 2006 10:24:46 +0000
>
> here is a reworking of my patch which includes a new version of the
> set reading code in gdb/dwarf2read.c. Also contained is a patch to
> gdb/doc/gdb.texinfo reflecting the enhancements to the Modula-2 mode.
Thanks. My comments are below.
> + error (_("type not handled in m2_type_print_varspec_prefix()"));
Please don't append "()" to indicate that you are talking about a
function; just name the function. "foo()" looks like a call to `foo'
with no arguments, which is not what you want to say.
> + error (_("type not handled in m2_type_print_varspec_suffix()"));
Same here.
Btw, isn't it better to tell what type was not handled?
> + fprintf_filtered(stream, "SET OF %s", _("<unknown>"));
It is better to include "SET OF" in the string to be translated:
fprintf_filtered(stream, "%s", _("SET OF <unknown>"));
This way, the translator will see the whole phrase, and will be able
to translate "unknown" to a correct grammatical form (e.g., wrt
gender). If you think "SET OF" should not be left verbatim, you can
put an i18n comment there:
/* i18n: Do not translate the "SET OF" part! */
These specially formatted comments will be extracted to the message
catalog, so the translators will see them right next to the string
they need to translate.
> + fprintf_filtered (stream, "CASE %s OF\n", _("<variant>"));
Same here.
> + fprintf_filtered (stream, "struct %s", _("<unknown>"));
And here.
> + fprintf_filtered (stream, "<%s %d>",
> + _("invalid type code"), TYPE_CODE (type));
And here.
> --- latest-cvs-gdb/src-cvs/gdb/doc/gdb.texinfo 2006-02-10 03:54:33.000000000 +0000
> +++ latest-cvs-gdb/src-m2/gdb/doc/gdb.texinfo 2006-02-21 10:10:41.000000000 +0000
The documentation patch is approved, but please take care of the
following minor issues:
> +@cindex Modula-2 types
> +@node M2 Types
The @cindex entry should come _after_ the @node, not before it.
> +@subsubsection Types
"Types" is too general a name here: this is just about Module-2 types;
there are quite a few other languages supported by GDB that have
types. So I suggest to rename to "Modula-2 Types".
> +Values of these types may also be printed. So for example, if the
^^
Two spaces after each period that ends a sentence, please.
> +@example
> +VAR
> + s: SET OF CHAR ;
> + r: [20..40] ;
> +@end example
> +
> +@value{GDBN} could be requested to interrogate the type and value of
This last line is a continuation of the sentence from before the
@example, so please put @noindent before this line, to prevent its
indentation as if it were a new paragraph.
> +@example
> +VAR
> + s: SET ['A'..'Z'] ;
> +@end example
> +
> +the user can query the type of @code{s} via:
Same here (and elsewhere, there are a few more like this).
> +It is advisable to use the following compile flags on the @code{gm2}
> +command line @code{-g -gdwarf-2}.
First, if there's only one command-line option you want to advise, why
use plural ``flags''? And second, command-line options should be in
@option, not in @code.
> +(gdb) print s
Please use (@value{GDBP}) instead of a literal (gdb) (it's for the
same reason we use @value{GDBN} instead of a literal GDB.
I also agree with Jim's comments.
next prev parent reply other threads:[~2006-02-21 20:46 UTC|newest]
Thread overview: 40+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-15 23:15 Gaius Mulley
2006-02-16 0:20 ` Jim Blandy
2006-02-16 11:06 ` Gaius Mulley
2006-02-20 15:05 ` Daniel Jacobowitz
2006-02-20 21:42 ` Jim Blandy
2006-02-21 11:06 ` Gaius Mulley
2006-02-21 19:01 ` Jim Blandy
2006-02-25 13:17 ` Gaius Mulley
2006-02-26 5:44 ` Jim Blandy
2006-02-26 5:46 ` Daniel Jacobowitz
2006-02-28 5:37 ` Gaius Mulley
2006-02-28 13:53 ` Jim Blandy
2006-03-02 8:57 ` Gaius Mulley
2006-03-02 17:27 ` Jim Blandy
2006-02-21 19:21 ` Jim Blandy
2006-02-21 20:51 ` Eli Zaretskii
2006-02-21 20:50 ` Eli Zaretskii [this message]
2006-02-21 20:57 ` Mark Kettenis
2006-02-22 5:33 ` Eli Zaretskii
2006-02-22 18:36 ` Eli Zaretskii
2006-02-16 4:34 ` Eli Zaretskii
2006-02-16 11:11 ` Gaius Mulley
2006-04-20 13:23 Gaius Mulley
2006-04-20 14:35 ` Eli Zaretskii
2006-04-20 18:47 ` Mark Kettenis
2006-04-20 18:54 ` Eli Zaretskii
2006-05-04 7:17 ` Gaius Mulley
2006-05-04 15:37 ` Daniel Jacobowitz
2006-05-04 18:01 ` Jim Blandy
2006-05-08 14:09 ` Gaius Mulley
2006-05-08 17:47 ` Jim Blandy
2006-05-09 22:57 ` Gaius Mulley
2006-05-10 21:45 ` Jim Blandy
2006-05-11 12:37 ` Gaius Mulley
2006-05-12 18:18 ` Joel Brobecker
2006-05-12 18:27 ` Jim Blandy
2006-05-13 13:31 ` Gaius Mulley
2006-05-13 11:02 ` Gaius Mulley
2006-05-08 21:03 ` Eli Zaretskii
2006-05-04 16:12 ` Eli Zaretskii
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=u1wxwbfu7.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=gaius@glam.ac.uk \
--cc=gdb-patches@sources.redhat.com \
--cc=jimb@red-bean.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