This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [PATCH]: Make Linux use the new unified x86 watchpoint support
- To: Michael Snyder <msnyder at cygnus dot com>
- Subject: Re: [PATCH]: Make Linux use the new unified x86 watchpoint support
- From: Eli Zaretskii <eliz at is dot elta dot co dot il>
- Date: Wed, 28 Mar 2001 11:29:01 +0200 (IST)
- cc: kettenis at science dot uva dot nl, gdb-patches at sources dot redhat dot com
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?