This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [rfc] Merge set_register_cache() and supply_register(,NULL)
- To: Andrew Cagney <ac131313 at cygnus dot com>
- Subject: Re: [rfc] Merge set_register_cache() and supply_register(,NULL)
- From: Michael Snyder <msnyder at cygnus dot com>
- Date: Fri, 09 Mar 2001 13:34:31 -0800
- CC: GDB Patches <gdb-patches at sourceware dot cygnus dot com>
- Organization: Red Hat
- References: <3AA8491C.CC265D5E@cygnus.com>
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.