[commit]: Re: Enhanced language support for Modula-2

Gaius Mulley gaius@glam.ac.uk
Sat May 13 16:24:00 GMT 2006


Hi,

a small note to say that I've applied the Modula-2 enhancement patches
to the gdb cvs.  Many thanks for all the guidance,

regards,
Gaius


2006-05-09  Gaius Mulley <gaius@glam.ac.uk>

        * gdb/m2-lang.h: added function extern prototypes for
        m2_is_long_set and get_long_set_bounds.
        * gm2/m2-typeprint.c: This file has been completely
        replaced to reflect the Modula-2 syntax rather than call the
        c_print_type function.
        (m2_print_type): walk the Modula-2 type tree.
        (m2_type_name): added.
        (m2_range): added.
        (m2_typedef): added.
        (m2_array): added.
        (m2_pointer): added.
        (m2_ref): added.
        (m2_unknown): added.
        (m2_union): added.
        (m2_procedure): added.
        (m2_print_bounds): added.
        (m2_short_set): added.
        (m2_is_long_set): added.
        (m2_get_discrete_bounds): added.
        (m2_is_long_set_of_type): added.
        (m2_long_set): added.
        (m2_record_fields): added.
        (m2_enum): added.
        * gdb/dwarf2read.c: added ability to detect the language
          Modula-2 and handle SET and CHAR types.
        (read_set_type): added.
        (process_die): call read_set_type.
        (read_base_type): modifed signed/unsigned char handling for
          Modula-2.
        (set_cu_language): added Modula-2 case clause.
        * gdb/m2-valprint.c: complete replacement so that Modula-2
          values are printed rather than call the C language routines.
        (print_function_pointer_address): added.
        (get_long_set_bounds): added.
        (m2_print_long_set): added.
        (print_unpacked_pointer): added.
        (print_variable_at_address): added.
        (m2_val_print): replaced.

        * gdb/doc/gdb.texinfo: added a section on Modula-2 Types.



More information about the Gdb-patches mailing list