gdb: remove TYPE_NFIELDS macro
[deliverable/binutils-gdb.git] / gdb / c-lang.c
index 557482f2be446dba0ff24b338d382835fb4a7eaa..e549c5cb6571737af424f19a20077d2eb3a95a1b 100644 (file)
@@ -254,7 +254,7 @@ c_get_string (struct value *value, gdb::unique_xmalloc_ptr<gdb_byte> *buffer,
     {
       /* If we know the size of the array, we can use it as a limit on
         the number of characters to be fetched.  */
-      if (TYPE_NFIELDS (type) == 1
+      if (type->num_fields () == 1
          && TYPE_FIELD_TYPE (type, 0)->code () == TYPE_CODE_RANGE)
        {
          LONGEST low_bound, high_bound;
This page took 0.023139 seconds and 4 git commands to generate.