This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: Multiplexed registers and invalidating the register cache
On Fri, Apr 16, 2004 at 02:50:27PM +0200, Orjan Friberg wrote:
> Andrew Cagney wrote:
> >
> >Consider the effect of modifying the $sp.
> >
> >While it might in theory be possible to implement some sort of
> >complicated look-aside cache schema, in reality there is zero return on
> >investment. Since recovery from the flush can't be slower than recovery
> >from single-step, and single step is way way more critical, we should
> >focus on single step.
>
> Ok, I'm convinced that the whole frame cache should be discarded, except
> I must be missing something since calling flush_cached_frames doesn't
> refetch the current set of registers (like calling registers_changed does).
Yes, I think you need to do both.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer