diff options
Diffstat (limited to 'gdb/m2-lang.c')
-rw-r--r-- | gdb/m2-lang.c | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/gdb/m2-lang.c b/gdb/m2-lang.c index 5912670..57750b5 100644 --- a/gdb/m2-lang.c +++ b/gdb/m2-lang.c @@ -375,7 +375,9 @@ const struct exp_descriptor exp_descriptor_modula2 = evaluate_subexp_modula2 }; -extern const struct language_defn m2_language_defn = +/* Constant data describing the M2 language. */ + +extern const struct language_data m2_language_data = { "modula-2", "Modula-2", @@ -424,6 +426,20 @@ extern const struct language_defn m2_language_defn = "{...}" /* la_struct_too_deep_ellipsis */ }; +/* Class representing the M2 language. */ + +class m2_language : public language_defn +{ +public: + m2_language () + : language_defn (language_m2, m2_language_data) + { /* Nothing. */ } +}; + +/* Single instance of the M2 language. */ + +static m2_language m2_language_defn; + static void * build_m2_types (struct gdbarch *gdbarch) { |