aboutsummaryrefslogtreecommitdiff
path: root/gdb/mips-tdep.c
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2006-06-08 19:22:46 +0000
committerMichael Snyder <msnyder@vmware.com>2006-06-08 19:22:46 +0000
commitb2d6f210e93479113d0afa8693c4383549bca5fd (patch)
treeae8b45510b34b29ec200505caa8a8144ff3be033 /gdb/mips-tdep.c
parent719abd53218259afb8c07502ae9fd8af4ef7755a (diff)
downloadgdb-b2d6f210e93479113d0afa8693c4383549bca5fd.zip
gdb-b2d6f210e93479113d0afa8693c4383549bca5fd.tar.gz
gdb-b2d6f210e93479113d0afa8693c4383549bca5fd.tar.bz2
2006-06-08 Michael Snyder <msnyder@redhat.com>
* mips-tdep.c (fp_register_arg_p): Recognize floating point typedefs.
Diffstat (limited to 'gdb/mips-tdep.c')
-rw-r--r--gdb/mips-tdep.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/mips-tdep.c b/gdb/mips-tdep.c
index ea6067c..f815512 100644
--- a/gdb/mips-tdep.c
+++ b/gdb/mips-tdep.c
@@ -2335,7 +2335,8 @@ fp_register_arg_p (enum type_code typecode, struct type *arg_type)
&& (typecode == TYPE_CODE_STRUCT
|| typecode == TYPE_CODE_UNION)
&& TYPE_NFIELDS (arg_type) == 1
- && TYPE_CODE (TYPE_FIELD_TYPE (arg_type, 0)) == TYPE_CODE_FLT))
+ && TYPE_CODE (check_typedef (TYPE_FIELD_TYPE (arg_type, 0)))
+ == TYPE_CODE_FLT))
&& MIPS_FPU_TYPE != MIPS_FPU_NONE);
}