From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5634 invoked by alias); 14 May 2002 15:28:57 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 5625 invoked from network); 14 May 2002 15:28:56 -0000 Received: from unknown (HELO dr-evil.shagadelic.org) (208.176.2.162) by sources.redhat.com with SMTP; 14 May 2002 15:28:56 -0000 Received: by dr-evil.shagadelic.org (Postfix, from userid 7518) id 3CE8A9869; Tue, 14 May 2002 08:28:56 -0700 (PDT) Date: Tue, 14 May 2002 08:28:00 -0000 From: Jason R Thorpe To: Richard.Earnshaw@arm.com Cc: gdb@sources.redhat.com Subject: Re: Saving/restoring the entire register set Message-ID: <20020514082856.O3435@dr-evil.shagadelic.org> Reply-To: thorpej@wasabisystems.com Mail-Followup-To: Jason R Thorpe , Richard.Earnshaw@arm.com, gdb@sources.redhat.com References: <200205141517.QAA18465@cam-mail2.cambridge.arm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200205141517.QAA18465@cam-mail2.cambridge.arm.com>; from rearnsha@arm.com on Tue, May 14, 2002 at 04:17:37PM +0100 Organization: Wasabi Systems, Inc. X-SW-Source: 2002-05/txt/msg00151.txt.bz2 On Tue, May 14, 2002 at 04:17:37PM +0100, Richard Earnshaw wrote: > struct regcache *regcache_alloc (); /* Allocate a new regcache structure */ > regcache_save (regcache); /* Copy current registers into it */ > regcache_restore (regcache); /* Restore registers from it */ > regcache_free (regcache); /* Release it */ > > which would directly perform the precise operations that are required. Sounds perfectly sensible to me. -- -- Jason R. Thorpe