This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Saving/restoring the entire register set


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>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]