This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Saving/restoring the entire register set
- From: Jason R Thorpe <thorpej at wasabisystems dot com>
- To: Richard dot Earnshaw at arm dot com
- Cc: gdb at sources dot redhat dot com
- Date: Tue, 14 May 2002 08:28:56 -0700
- Subject: Re: Saving/restoring the entire register set
- Organization: Wasabi Systems, Inc.
- References: <200205141517.QAA18465@cam-mail2.cambridge.arm.com>
- Reply-to: thorpej at wasabisystems dot com
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 <thorpej@wasabisystems.com>