From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Snyder To: Andrew Cagney Cc: GDB Patches Subject: Re: [rfc] Merge set_register_cache() and supply_register(,NULL) Date: Fri, 09 Mar 2001 13:46:00 -0000 Message-id: <3AA94C67.C930D6D5@cygnus.com> References: <3AA8491C.CC265D5E@cygnus.com> X-SW-Source: 2001-03/msg00155.html Andrew Cagney wrote: > > Thoughts? > > The attatched merges the semantics of the two sequences: > > supply_register (, zero_buf); > set_register_cache(-1); > > and > > supply_register (, NULL); > > Making the latter the only interface. It marks the register as > unavailable and and stores zeroes in it. > > The only thing looking that this ``unavailable'' status is the GUI > (Insight). ... that last is not right. Expression evaluation will look at the unavailable status, as will "info registers". If you try to evaluate the register and it isn't available, you'll get a notification.