This is the mail archive of the gdb-patches@sourceware.org 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]
Other format: [Raw text]

Re: performance of multithreading gets gradually worse under gdb


On Friday 04 February 2011 14:58:34, Ulrich Weigand wrote:
> Tom Tromey wrote:
> 
> > 	* thread.c (free_thread): Call free_thread_regcache.
> > 	* regcache.h (free_thread_regcache): Declare.
> > 	* regcache.c (current_regcache): Remove.
> > 	(get_thread_arch_regcache): Use thread's regcache.
> > 	(free_thread_regcache): New function.
> > 	(regcache_thread_ptid_changed): Use thread's regcache.
> > 	(invalidate_registers_maybe): New function.
> > 	(registers_changed_ptid): Use iterate_over_threads and
> > 	invalidate_registers_maybe.
> > 	* gdbthread.h (struct thread_info) <regcache>: New field.
> 
> Looks good to me ...

Please see my email on gdb@ before proceeding with this.

-- 
Pedro Alves


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