This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Variable objects in multi-threaded programs
- From: Vladimir Prus <vladimir at codesourcery dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Thu, 24 Jan 2008 09:35:59 +0300
- Subject: Re: [PATCH] Variable objects in multi-threaded programs
- References: <18328.5277.85018.374650@kahikatea.snap.net.nz>
Nick Roberts wrote:
>
> Currently GDB thinks variable objects have gone out of scope if the thread
> changes.
This is indeed a major problem.
> This patch corrects that.
I'm somewhat concerned that this patch makes gdb traverse stacks of all
threads -- it can take quite some time. Would a better solution be
to store thread id inside varobj?
- Volodya