gdb: add type::num_fields / type::set_num_fields
[deliverable/binutils-gdb.git] / gdb / eval.c
index ea08602788085d9cb8d6ab56b28d5fc347b65a6f..023b629c1aa7bb363e78b5e1d3d33326fa005cf8 100644 (file)
@@ -682,7 +682,7 @@ fake_method::fake_method (type_instance_flags flags,
      neither an objfile nor a gdbarch.  As a result we must manually
      allocate memory for auxiliary fields, and free the memory ourselves
      when we are done with it.  */
-  TYPE_NFIELDS (type) = num_types;
+  type->set_num_fields (num_types);
   TYPE_FIELDS (type) = (struct field *)
     xzalloc (sizeof (struct field) * num_types);
 
This page took 0.024351 seconds and 4 git commands to generate.