From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18573 invoked by alias); 7 May 2004 01:19:43 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 18356 invoked from network); 7 May 2004 01:19:40 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sources.redhat.com with SMTP; 7 May 2004 01:19:40 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.10/8.12.10) with ESMTP id i471Jc0u021420 for ; Thu, 6 May 2004 21:19:39 -0400 Received: from zenia.home.redhat.com (porkchop.devel.redhat.com [172.16.58.2]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id i46J73v03638; Thu, 6 May 2004 15:07:04 -0400 To: gdb-patches@sources.redhat.com Subject: RFA: check for floating-point registers From: Jim Blandy Date: Fri, 07 May 2004 01:19:00 -0000 Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2004-05/txt/msg00168.txt.bz2 2004-05-06 Jim Blandy * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that the given architecture has floating-point registers. Index: gdb/ppc-sysv-tdep.c =================================================================== RCS file: /cvs/src/src/gdb/ppc-sysv-tdep.c,v retrieving revision 1.22 diff -c -p -r1.22 ppc-sysv-tdep.c *** gdb/ppc-sysv-tdep.c 5 May 2004 01:46:55 -0000 1.22 --- gdb/ppc-sysv-tdep.c 6 May 2004 19:05:44 -0000 *************** ppc64_sysv_abi_return_value (struct gdba *** 850,855 **** --- 850,861 ---- 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) {