From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark Kettenis To: msnyder@cygnus.com Cc: eliz@is.elta.co.il, gdb-patches@sources.redhat.com Subject: Re: [PATCH]: Make Linux use the new unified x86 watchpoint support Date: Wed, 28 Mar 2001 02:03:00 -0000 Message-id: <200103281002.f2SA2vh00928@delius.kettenis.local> References: <3AC0C5B6.3C05@redhat.com> <200103271746.MAA08374@indy.delorie.com> <3AC0F0EA.F7E2AC40@cygnus.com> X-SW-Source: 2001-03/msg00521.html Date: Tue, 27 Mar 2001 11:58:34 -0800 From: Michael Snyder > 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. Hmm, I doubt that a per-thread cache is feasable. As soon as a single thread is running, it might be changing another thread's registers even if that thread isn't running. I know for a fact that this can happen on the Hurd. And I suspect that many-to-many threads implementations do similar things. Mark