gdb: remove TYPE_HIGH_BOUND and TYPE_LOW_BOUND
[deliverable/binutils-gdb.git] / gdb / guile / scm-type.c
index a36f0ba71cf4d829de37be90a7a1e12d01784b36..fe6f493aa7f5cfffad2995dda8dddc9eaf5d26b6 100644 (file)
@@ -826,12 +826,12 @@ gdbscm_type_range (SCM self)
     {
     case TYPE_CODE_ARRAY:
     case TYPE_CODE_STRING:
-      low = TYPE_LOW_BOUND (type->index_type ());
-      high = TYPE_HIGH_BOUND (type->index_type ());
+      low = type->index_type ()->bounds ()->low.const_val ();
+      high = type->index_type ()->bounds ()->high.const_val ();
       break;
     case TYPE_CODE_RANGE:
-      low = TYPE_LOW_BOUND (type);
-      high = TYPE_HIGH_BOUND (type);
+      low = type->bounds ()->low.const_val ();
+      high = type->bounds ()->high.const_val ();
       break;
     }
 
This page took 0.026143 seconds and 4 git commands to generate.