performance of multithreading gets gradually worse under gdb
Ulrich Weigand
uweigand@de.ibm.com
Fri Feb 4 14:58:00 GMT 2011
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
More information about the Gdb-patches
mailing list