aboutsummaryrefslogtreecommitdiff
path: root/gdb/ppc-sysv-tdep.c
diff options
context:
space:
mode:
authorJim Blandy <jimb@codesourcery.com>2004-05-07 20:48:43 +0000
committerJim Blandy <jimb@codesourcery.com>2004-05-07 20:48:43 +0000
commit16796152f1c49bb26a9a1337008062b7a5e8bbba (patch)
tree939d9071d644a94dd0f9a8fdae2bcc937a4acadd /gdb/ppc-sysv-tdep.c
parent532c738a1337f8d9e8f90ff48c2acb37f4ef9e6c (diff)
downloadgdb-16796152f1c49bb26a9a1337008062b7a5e8bbba.zip
gdb-16796152f1c49bb26a9a1337008062b7a5e8bbba.tar.gz
gdb-16796152f1c49bb26a9a1337008062b7a5e8bbba.tar.bz2
* ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
the given architecture has floating-point registers.
Diffstat (limited to 'gdb/ppc-sysv-tdep.c')
-rw-r--r--gdb/ppc-sysv-tdep.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/ppc-sysv-tdep.c b/gdb/ppc-sysv-tdep.c
index 2d48ed5..7da5ce2 100644
--- a/gdb/ppc-sysv-tdep.c
+++ b/gdb/ppc-sysv-tdep.c
@@ -850,6 +850,12 @@ ppc64_sysv_abi_return_value (struct gdbarch *gdbarch, struct type *valtype,
const void *writebuf)
{
struct gdbarch_tdep *tdep = gdbarch_tdep (gdbarch);
+
+ /* This function exists to support a calling convention that
+ requires floating-point registers. It shouldn't be used on
+ processors that lack them. */
+ gdb_assert (ppc_floating_point_unit_p (gdbarch));
+
/* Floats and doubles in F1. */
if (TYPE_CODE (valtype) == TYPE_CODE_FLT && TYPE_LENGTH (valtype) <= 8)
{