From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25904 invoked by alias); 17 May 2005 13:52:23 -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 21746 invoked from network); 17 May 2005 13:50:14 -0000 Received: from unknown (HELO nevyn.them.org) (66.93.172.17) by sourceware.org with SMTP; 17 May 2005 13:50:14 -0000 Received: from drow by nevyn.them.org with local (Exim 4.50) id 1DY2Sc-0001Tq-6c for gdb-patches@sources.redhat.com; Tue, 17 May 2005 09:50:14 -0400 Date: Tue, 17 May 2005 14:10:00 -0000 From: Daniel Jacobowitz To: gdb-patches@sources.redhat.com Subject: Re: [RFA] Resurrect v850 Message-ID: <20050517135014.GA5655@nevyn.them.org> Mail-Followup-To: gdb-patches@sources.redhat.com References: <20050513114016.GN2805@calimero.vinschen.de> <20050515174426.GA1193@nevyn.them.org> <20050517132348.GF18174@calimero.vinschen.de> <20050517133827.GH18174@calimero.vinschen.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050517133827.GH18174@calimero.vinschen.de> User-Agent: Mutt/1.5.8i X-SW-Source: 2005-05/txt/msg00420.txt.bz2 On Tue, May 17, 2005 at 03:38:27PM +0200, Corinna Vinschen wrote: > 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]; > > ? Yes, precisely. -- Daniel Jacobowitz CodeSourcery, LLC