Change regcache list to be an hash map
[deliverable/binutils-gdb.git] / gdb / m68k-tdep.c
index 46a0f093201c2b923330a95fd23f13629a9cbe77..27870252a360024199eb468c61cd153363fd7280 100644 (file)
@@ -463,9 +463,9 @@ m68k_svr4_return_value (struct gdbarch *gdbarch, struct value *function,
      changing TYPE into the type of the first member of the structure.
      Since that should work for all structures that have only one
      member, we don't bother to check the member's type here.  */
-  if (code == TYPE_CODE_STRUCT && TYPE_NFIELDS (type) == 1)
+  if (code == TYPE_CODE_STRUCT && type->num_fields () == 1)
     {
-      type = check_typedef (TYPE_FIELD_TYPE (type, 0));
+      type = check_typedef (type->field (0).type ());
       return m68k_svr4_return_value (gdbarch, function, type, regcache,
                                     readbuf, writebuf);
     }
This page took 0.026257 seconds and 4 git commands to generate.