This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: Enhanced language support for Modula-2
- From: Gaius Mulley <gaius at glam dot ac dot uk>
- To: Eli Zaretskii <eliz at gnu dot org>
- Cc: gdb-patches at sources dot redhat dot com
- Date: 16 Feb 2006 11:11:27 +0000
- Subject: Re: Enhanced language support for Modula-2
- References: <87vevg9puv.fsf@j228-gm.comp.glam.ac.uk> <ud5hnj50l.fsf@gnu.org>
Eli Zaretskii <eliz@gnu.org> writes:
> > From: Gaius Mulley <gaius@glam.ac.uk>
> > Date: 15 Feb 2006 23:14:32 +0000
> >
> > Anyhow this patch provides better support for Modula-2 in the
> > following areas:
> >
> > * basic types are printed correctly when -gdwarf-2 is specified
> > on the gm2 command line.
> > * set types are supported (type printing and value printing).
> > The patch correctly identifies: SET OF CHAR, SET OF ['a'..'z']
> > etc.
> > * long and short (word length) sets are supported.
> > * range types are also identified and `ptype' prints them correctly.
> > * automatic detection of Modula-2 generated executable is enabled.
> > * VAR parameters are printed correctly
> > * hexadecimal addresses are written using the Modula-2 syntax.
> > * character constants are written using the octal syntax
> > (in the same way as PIM-[234].)
>
> Thanks.
>
> I think some of these changes might need updates in the user's manual.
> Could you please look at the "Modula-2" section and its subsections,
> and see if anything there should be added/removed/modified?
yes sure..
> > + error ("type not handled in m2_type_print_varspec_prefix()");
>
> User messages should be in _(), to allow for translations into other
> languages.
ok thanks for these pointers..
> > + fprintf_filtered(stream, "SET OF <unknown> ");
>
> "SET OF" probably won't be translated, but "<unknown>" should, so this
> message should be in _() as well.
true, I'll improve the patches and repost,
Gaius