[rfc] Merge set_register_cache() and supply_register(,NULL)

Michael Snyder msnyder@cygnus.com
Fri Mar 9 13:46:00 GMT 2001


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.



More information about the Gdb-patches mailing list