gdb: remove TYPE_NFIELDS macro
[deliverable/binutils-gdb.git] / gdb / m2-valprint.c
index f0166118634ce1212a90b3c87eef8a3161328fde..f9cb626fd6872ba348d77344e51dabb8f3b72fd3 100644 (file)
@@ -51,7 +51,7 @@ get_long_set_bounds (struct type *type, LONGEST *low, LONGEST *high)
 
   if (type->code () == TYPE_CODE_STRUCT)
     {
-      len = TYPE_NFIELDS (type);
+      len = type->num_fields ();
       i = TYPE_N_BASECLASSES (type);
       if (len == 0)
        return 0;
@@ -83,7 +83,7 @@ m2_print_long_set (struct type *type, const gdb_byte *valaddr,
   type = check_typedef (type);
 
   fprintf_filtered (stream, "{");
-  len = TYPE_NFIELDS (type);
+  len = type->num_fields ();
   if (get_long_set_bounds (type, &low_bound, &high_bound))
     {
       field = TYPE_N_BASECLASSES (type);
This page took 0.023632 seconds and 4 git commands to generate.