This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: performance of multithreading gets gradually worse under gdb
- From: "Ulrich Weigand" <uweigand at de dot ibm dot com>
- To: tromey at redhat dot com (Tom Tromey)
- Cc: markus at hyperion-imrt dot org (Markus Alber), msnyder at vmware dot com (Michael Snyder), gdb-patches at sourceware dot org, pedro at codesourcery dot com
- Date: Fri, 4 Feb 2011 15:58:34 +0100 (CET)
- Subject: 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