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: [PATCH]: Make Linux use the new unified x86 watchpoint support



On Tue, 27 Mar 2001, Michael Snyder wrote:

> > As far as I understood, GDB's regcache cannot do such magic.  It
> > assumes that all the registers are per thread, so if you change them
> > in one thread, the other threads' registers remain unchanged in the
> > cache.
> 
> Currently there is only one cache (not one per thread).
> When you change threads, the cache is flushed.  However, 
> there are plans for a per-thread cache, so your concern
> is not ill-placed.
> 
> > In other words, this kind of global registers is (or was when we
> > discussed it) incompatible with how regcache works.  That is why I was
> > advised not to introduce the debug registers into the regcache.
> 
> They could be pseudo-registers, which means the debugger would
> have the opportunity to handle them specially.

I agree that, once the register cache transition is complete, we
should probably revisit this issue and consider including the debug
registers in the cache.  At the time I wrote the code, and even now,
this issue seemed to be too fluid to rely on it.

Something to put into TODO for 5.2, perhaps?


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