Move TYPE_SELF_TYPE into new field type_specific.
[deliverable/binutils-gdb.git] / gdb / m2-typeprint.c
index 4e8293810416bd3d6f0aabedbcf5abf3eb3a1b38..21bca390721ba8ad624f011ca514f2647000efec 100644 (file)
@@ -188,8 +188,12 @@ m2_range (struct type *type, struct ui_file *stream, int show,
          int level, const struct type_print_options *flags)
 {
   if (TYPE_HIGH_BOUND (type) == TYPE_LOW_BOUND (type))
-    m2_print_type (TYPE_SELF_TYPE (type), "", stream, show, level,
-                  flags);
+    {
+      /* FIXME: TYPE_TARGET_TYPE used to be TYPE_DOMAIN_TYPE but that was
+        wrong.  Not sure if TYPE_TARGET_TYPE is correct though.  */
+      m2_print_type (TYPE_TARGET_TYPE (type), "", stream, show, level,
+                    flags);
+    }
   else
     {
       struct type *target = TYPE_TARGET_TYPE (type);
This page took 0.028321 seconds and 4 git commands to generate.