Enhanced language support for Modula-2

Gaius Mulley gaius@glam.ac.uk
Thu Feb 16 11:11:00 GMT 2006


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



More information about the Gdb-patches mailing list