[RFC: 6/9] Make step_multi per-thread in all-stop, and don't context-switch it

Pedro Alves pedro@codesourcery.com
Sat Aug 16 15:36:00 GMT 2008


This patch removes the global step_multi, in favour of accessing 
the equivalent member in thread_info.  This is already per-thread in
non-stop, and this patch makes it per-thread in all-stop too.

I don't think there's much to say here, except that in async all-stop
mode, if while we're doing a multi-step, another thread stops at
a breakpoint, the original multi-step is cancelled.  The way it
works currently, is that in all-stop, continuations are global, not
per-thread, so the step_1_continuation is always called in that case.
The continuation itself is responsible to detect that the
multi-step is to be cancelled.  Further ahead, I'll be making
continuations per-thread in all-stop too, but this will still work,
as in all-stop, when the inferior stops, I'll run the continuations
of all threads.

-- 
Pedro Alves
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 006-step_multi.diff
Type: text/x-diff
Size: 9051 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20080816/4333cc90/attachment.bin>


More information about the Gdb-patches mailing list