This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA] Make continuations per-thread.
- From: Daniel Jacobowitz <drow at false dot org>
- To: Vladimir Prus <vladimir at codesourcery dot com>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Thu, 1 May 2008 23:00:12 -0400
- Subject: Re: [RFA] Make continuations per-thread.
- References: <200804242045.39246.vladimir@codesourcery.com>
On Thu, Apr 24, 2008 at 07:45:38PM +0300, Vladimir Prus wrote:
>
> Right now, continuations are global. This means that if we're doing
> 'finish' in one thread, then we cannot do 'finish' or anything that
> also uses continuations, in any other thread. This seems unnecessary
> limitation, and this patch makes continuations per-thread.
>
> Further into non-stop series, it really allows me to do 'finish' or 'step'
> in several threads independently.
>
> OK?
Could you explain why this is safe? We will do continuations for the
thread which reports an event only. So it seems like continuations
for other threads will linger in their struct thread.
For example, if we finish from one thread and hit a breakpoint in
another thread before the finish returns.
--
Daniel Jacobowitz
CodeSourcery