From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Cagney To: David Taylor Cc: gdb-patches@sources.redhat.com Subject: Re: [RFA] regcache.c (register_fetched) + related changes Date: Tue, 27 Feb 2001 17:40:00 -0000 Message-id: <3A9C5696.2DA70024@cygnus.com> References: <200102272224.RAA15833@texas.cygnus.com> X-SW-Source: 2001-02/msg00496.html David Taylor wrote: > I propose that we: > > . add register_fetched David, The functionality of register_fetched() overlaps with set_register_cached() and supply_register(). Rather than add a redundant method, could an existing interface be used or the current interfaces rationalized slightly? Keep in mind that the long term goal is to tighten regcache's interface signficantly. That is, eliminate register_valid[], registers[] and possibly even set_register_cached() replacing them with a small set of functions such as: supply_register() supply_unavailable_register() If you are thinking of proposing further changes then you may want to keep that in mind. With regard to regcache.h, yes the two clash. It both moves code around and changes the set_register_cached() interface. If anything regcache.h makes life easier because it is finally clear what the regcache interfaces really are. Andrew