gdb: add target_ops::supports_displaced_step
[deliverable/binutils-gdb.git] / gdb / d-valprint.c
index cb0f5095dfc02dfbc056587439bc66eba53fa55d..34f8b05a62b438d108b4f3b8d8b35d1fe3cd6d84 100644 (file)
@@ -34,7 +34,7 @@ dynamic_array_type (struct type *type,
                    struct value *val,
                    const struct value_print_options *options)
 {
-  if (TYPE_NFIELDS (type) == 2
+  if (type->num_fields () == 2
       && TYPE_FIELD_TYPE (type, 0)->code () == TYPE_CODE_INT
       && strcmp (TYPE_FIELD_NAME (type, 0), "length") == 0
       && strcmp (TYPE_FIELD_NAME (type, 1), "ptr") == 0
This page took 0.023071 seconds and 4 git commands to generate.