This is the mail archive of the gdb-patches@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]

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


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.


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