From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eli Zaretskii To: Michael Snyder Cc: kettenis@science.uva.nl, gdb-patches@sources.redhat.com Subject: Re: [PATCH]: Make Linux use the new unified x86 watchpoint support Date: Wed, 28 Mar 2001 01:31:00 -0000 Message-id: References: <3AC0F0EA.F7E2AC40@cygnus.com> X-SW-Source: 2001-03/msg00519.html 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?