[PATCH] Variable objects in multi-threaded programs

Vladimir Prus vladimir@codesourcery.com
Thu Jan 24 06:36:00 GMT 2008


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




More information about the Gdb-patches mailing list