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


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 ...

Thanks,
Ulrich

-- 
  Dr. Ulrich Weigand
  GNU Toolchain for Linux on System z and Cell BE
  Ulrich.Weigand@de.ibm.com


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