"finish" does not work on sparc if function returns array.
[deliverable/binutils-gdb.git] / gdb / sparc-tdep.c
index a2bae9f0f5890cae485bd561fba47fc034838abb..29a12cf5d65545b1e3a841aa980e71270e834744 100644 (file)
@@ -221,7 +221,11 @@ sparc_floating_p (const struct type *type)
   return 0;
 }
 
-/* Check whether TYPE is "Structure or Union".  */
+/* Check whether TYPE is "Structure or Union".
+
+   In terms of Ada subprogram calls, arrays are treated the same as
+   struct and union types.  So this function also returns non-zero
+   for array types.  */
 
 static int
 sparc_structure_or_union_p (const struct type *type)
@@ -230,6 +234,7 @@ sparc_structure_or_union_p (const struct type *type)
     {
     case TYPE_CODE_STRUCT:
     case TYPE_CODE_UNION:
+    case TYPE_CODE_ARRAY:
       return 1;
     default:
       break;
This page took 0.023929 seconds and 4 git commands to generate.