diff options
Diffstat (limited to 'gdb/nds32-tdep.c')
-rw-r--r-- | gdb/nds32-tdep.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/nds32-tdep.c b/gdb/nds32-tdep.c index d4d07c030f1..d403b71f10b 100644 --- a/gdb/nds32-tdep.c +++ b/gdb/nds32-tdep.c @@ -1405,7 +1405,7 @@ nds32_check_calling_use_fpr (struct type *type) typecode = t->code (); if (typecode != TYPE_CODE_STRUCT) break; - else if (TYPE_NFIELDS (t) != 1) + else if (t->num_fields () != 1) return 0; else t = TYPE_FIELD_TYPE (t, 0); @@ -1496,7 +1496,7 @@ nds32_push_dummy_call (struct gdbarch *gdbarch, struct value *function, and pushes all unnamed arguments in stack. */ if (abi_use_fpr && TYPE_VARARGS (func_type) - && i >= TYPE_NFIELDS (func_type)) + && i >= func_type->num_fields ()) goto use_stack; /* Try to use FPRs to pass arguments only when |