From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15259 invoked by alias); 2 Oct 2002 04:06:08 -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 15172 invoked from network); 2 Oct 2002 04:06:07 -0000 Received: from unknown (HELO touchme.toronto.redhat.com) (216.138.202.10) by sources.redhat.com with SMTP; 2 Oct 2002 04:06:07 -0000 Received: from localhost.redhat.com (to-dhcp51.toronto.redhat.com [172.16.14.151]) by touchme.toronto.redhat.com (Postfix) with ESMTP id 417B88000F4 for ; Wed, 2 Oct 2002 00:06:07 -0400 (EDT) Received: from redhat.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 956A33ED5 for ; Wed, 2 Oct 2002 00:06:09 -0400 (EDT) Message-ID: <3D9A70B1.9020706@redhat.com> Date: Tue, 01 Oct 2002 21:06:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.0) Gecko/20020824 X-Accept-Language: en-us, en MIME-Version: 1.0 To: gdb-patches@sources.redhat.com Subject: [rfa:ppc} fix e500 struct return Content-Type: multipart/mixed; boundary="------------070605040904050207080508" X-SW-Source: 2002-10/txt/msg00041.txt.bz2 This is a multi-part message in MIME format. --------------070605040904050207080508 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-length: 154 Hello, The attached fixes struct return address for the e500. Same problem as with my previous patch for alloca_reg - needed to be biased. ok? Andrew --------------070605040904050207080508 Content-Type: text/plain; name="diffs" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="diffs" Content-length: 735 2002-10-01 Andrew Cagney * rs6000-tdep.c (rs6000_store_struct_return): Store struct return address in 3 biased by ppc_gp0_regnum. Index: rs6000-tdep.c =================================================================== RCS file: /cvs/cvsfiles/devo/gdb/rs6000-tdep.c,v retrieving revision 2.148.2.12 diff -u -r2.148.2.12 rs6000-tdep.c --- rs6000-tdep.c 2002/10/02 02:25:02 2.148.2.12 +++ rs6000-tdep.c 2002/10/02 04:01:40 @@ -2285,7 +2285,8 @@ static void rs6000_store_struct_return (CORE_ADDR addr, CORE_ADDR sp) { - write_register (3, addr); + struct gdbarch_tdep *tdep = gdbarch_tdep (current_gdbarch); + write_register (tdep->ppc_gp0_regnum + 3, addr); rs6000_struct_return_address = addr; } --------------070605040904050207080508--