diff options
author | Joel Brobecker <brobecker@gnat.com> | 2010-05-05 16:59:00 +0000 |
---|---|---|
committer | Joel Brobecker <brobecker@gnat.com> | 2010-05-05 16:59:00 +0000 |
commit | 0497f5b03f47a7bf6e992d39b8057f647b181a8f (patch) | |
tree | 0666a4af6afa5c7a638cc288914c77b172450545 /gdb/sparc64-tdep.c | |
parent | 3e01a7fd46524394beb69329a3979e741925c1bd (diff) | |
download | fsf-binutils-gdb-0497f5b03f47a7bf6e992d39b8057f647b181a8f.zip fsf-binutils-gdb-0497f5b03f47a7bf6e992d39b8057f647b181a8f.tar.gz fsf-binutils-gdb-0497f5b03f47a7bf6e992d39b8057f647b181a8f.tar.bz2 |
"finish" does not work on sparc if function returns array.
ChangeLog:
* sparc-tdep.c (sparc_structure_or_union_p): Return non-zero
for array types.
* sparc64-tdep.c (sparc64_structure_or_union_p): Likewise.
Diffstat (limited to 'gdb/sparc64-tdep.c')
-rw-r--r-- | gdb/sparc64-tdep.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gdb/sparc64-tdep.c b/gdb/sparc64-tdep.c index 9a34834..3cd6109 100644 --- a/gdb/sparc64-tdep.c +++ b/gdb/sparc64-tdep.c @@ -103,7 +103,11 @@ sparc64_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 sparc64_structure_or_union_p (const struct type *type) @@ -112,6 +116,7 @@ sparc64_structure_or_union_p (const struct type *type) { case TYPE_CODE_STRUCT: case TYPE_CODE_UNION: + case TYPE_CODE_ARRAY: return 1; default: break; |