]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/m2-lang.c
gdb: Convert language la_print_typedef field to a method
[thirdparty/binutils-gdb.git] / gdb / m2-lang.c
index b84a9a49f8426c226e4d449e3c5e3602a740ad8d..f0f7c22fb5d698457a0416fe554041cecbb45c55 100644 (file)
@@ -229,7 +229,6 @@ extern const struct language_data m2_language_data =
   macro_expansion_no,
   NULL,
   &exp_descriptor_modula2,
-  m2_print_typedef,            /* Print a typedef using appropriate syntax */
   NULL,                                /* name_of_this */
   false,                       /* la_store_sym_names_in_linkage_form_p */
   m2_op_print_tab,             /* expression operators for printing */
@@ -427,6 +426,15 @@ public:
     if (force_ellipses || i < length)
       fputs_filtered ("...", stream);
   }
+
+  /* See language.h.  */
+
+  void print_typedef (struct type *type, struct symbol *new_symbol,
+                     struct ui_file *stream) const override
+  {
+    m2_print_typedef (type, new_symbol, stream);
+  }
+
 };
 
 /* Single instance of the M2 language.  */