From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8402 invoked by alias); 17 May 2005 13:39: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 7451 invoked from network); 17 May 2005 13:38:30 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org with SMTP; 17 May 2005 13:38:30 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id j4HDcTfh002099 for ; Tue, 17 May 2005 09:38:29 -0400 Received: from potter.sfbay.redhat.com (potter.sfbay.redhat.com [172.16.27.15]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id j4HDcTO26918 for ; Tue, 17 May 2005 09:38:29 -0400 Received: from calimero.vinschen.de (vpn50-53.rdu.redhat.com [172.16.50.53]) by potter.sfbay.redhat.com (8.12.8/8.12.8) with ESMTP id j4HDcRa8002773 for ; Tue, 17 May 2005 09:38:27 -0400 Received: by calimero.vinschen.de (Postfix, from userid 500) id 47E9F6D41F5; Tue, 17 May 2005 15:38:27 +0200 (CEST) Date: Tue, 17 May 2005 14:01:00 -0000 From: Corinna Vinschen To: gdb-patches@sources.redhat.com Subject: Re: [RFA] Resurrect v850 Message-ID: <20050517133827.GH18174@calimero.vinschen.de> Reply-To: gdb-patches@sources.redhat.com Mail-Followup-To: gdb-patches@sources.redhat.com References: <20050513114016.GN2805@calimero.vinschen.de> <20050515174426.GA1193@nevyn.them.org> <20050517132348.GF18174@calimero.vinschen.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050517132348.GF18174@calimero.vinschen.de> User-Agent: Mutt/1.4.2i X-SW-Source: 2005-05/txt/msg00419.txt.bz2 Hi Daniel, On May 17 15:23, Corinna Vinschen wrote: > [...] > > You can do the frobbing when you record the saved registers - at the > > end, copy the saved location. > > Sorry, I don't understand this. Can you show me some (pseudo) code what > you mean? Do you mean like this, as in m32r-tdep.c, function m32r_frame_unwind_cache: /* The call instruction moves the caller's PC in the callee's LR. Since this is an unwind, do the reverse. Copy the location of LR into PC (the address / regnum) so that a request for PC will be converted into a request for the LR. */ info->saved_regs[M32R_PC_REGNUM] = info->saved_regs[LR_REGNUM]; ? Corinna -- Corinna Vinschen Cygwin Project Co-Leader Red Hat, Inc.