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


   Date: Tue, 27 Mar 2001 11:58:34 -0800
   From: Michael Snyder <msnyder@cygnus.com>

   > 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


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