From b092717c1ebec1348aef75f9b87a1e4fcc7431b2 Mon Sep 17 00:00:00 2001 From: jimb Date: Fri, 7 May 2004 20:48:42 +0000 Subject: [PATCH] * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that the given architecture has floating-point registers. --- gdb/ChangeLog | 5 +++++ gdb/ppc-sysv-tdep.c | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 2a52700b76..3b25992416 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2004-05-07 Jim Blandy + + * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that + the given architecture has floating-point registers. + 2004-05-07 Andrew Cagney * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with diff --git a/gdb/ppc-sysv-tdep.c b/gdb/ppc-sysv-tdep.c index 2d48ed5016..7da5ce2366 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) { -- 2.11.0