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: Pedro Alves <pedro at codesourcery dot com>
- To: gdb-patches at sourceware dot org
- Cc: "Ulrich Weigand" <uweigand at de dot ibm dot com>, Tom Tromey <tromey at redhat dot com>, Markus Alber <markus at hyperion-imrt dot org>, Michael Snyder <msnyder at vmware dot com>
- Date: Fri, 4 Feb 2011 15:01:31 +0000
- Subject: Re: performance of multithreading gets gradually worse under gdb
- References: <201102041458.p14EwY9e025992@d06av02.portsmouth.uk.ibm.com>
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