From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32750 invoked by alias); 7 Nov 2002 00:27:37 -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 32742 invoked from network); 7 Nov 2002 00:27:36 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sources.redhat.com with SMTP; 7 Nov 2002 00:27:36 -0000 Received: from int-mx2.corp.redhat.com (nat-pool-rdu-dmz.redhat.com [172.16.52.200]) by mx1.redhat.com (8.11.6/8.11.6) with ESMTP id gA704ww24157 for ; Wed, 6 Nov 2002 19:04:58 -0500 Received: from potter.sfbay.redhat.com (potter.sfbay.redhat.com [172.16.27.15]) by int-mx2.corp.redhat.com (8.11.6/8.11.6) with ESMTP id gA70RUl31336; Wed, 6 Nov 2002 19:27:30 -0500 Received: from redhat.com (reddwarf.sfbay.redhat.com [172.16.24.50]) by potter.sfbay.redhat.com (8.11.6/8.11.6) with ESMTP id gA70RTD10611; Wed, 6 Nov 2002 16:27:29 -0800 Message-ID: <3DC9B371.94245DDE@redhat.com> Date: Wed, 06 Nov 2002 16:27:00 -0000 From: Michael Snyder Organization: Red Hat, Inc. X-Accept-Language: en MIME-Version: 1.0 To: gdb-patches@sources.redhat.com, cagney@redhat.com, kevinb@redhat.com, rearnsha@arm.com Subject: [RFA] arm_store_return_value, big-endian (take 2) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SW-Source: 2002-11/txt/msg00153.txt.bz2 This fixes up offsets in arm_store_return_value for big-endian targets, just as my first patch did for arm_extract_return_value. This supercedes the patch by the same name, which seems to have been bollixed by an incomprehensible but reproducable bug in gnu patch. ------------------------------------------------------------------------------- 2002-11-06 Michael Snyder * arm-tdep.c (arm_store_return_value): Handle offset of small types on big-endian machines. Index: arm-tdep.c =================================================================== RCS file: /cvs/src/src/gdb/arm-tdep.c,v retrieving revision 1.74 diff -p -r1.74 arm-tdep.c *** arm-tdep.c 1 Nov 2002 21:21:49 -0000 1.74 --- arm-tdep.c 7 Nov 2002 00:22:13 -0000 *************** arm_store_return_value (struct type *typ *** 2417,2422 **** --- 2417,2425 ---- break; } } + else if (TYPE_LENGTH (type) < REGISTER_RAW_SIZE (A1_REGNUM)) + write_register_bytes (REGISTER_RAW_SIZE (A1_REGNUM) - TYPE_LENGTH (type), + valbuf, TYPE_LENGTH (type)); else write_register_bytes (ARM_A1_REGNUM, valbuf, TYPE_LENGTH (type)); }