llvm-project/lldb/packages/Python/lldbsuite/test/linux
Pavel Labath a37bbbd432 NPL: Fix one more bug in the single step workaround
In the case we are stepping over the thread creation instruction, we
will end up calling Thread::SingleStep back-to-back twice (because of
the intermediate PTRACE_EVENT_CLONE stop). This will cause the cpu mask
to be set inappropriately (because the old SingleStepCheck object will
be destroyed after we create the new one), and the single-step will
fail.

Before the refactor the code was still incorrect in this case, but in a
different way (the thread was left with the incorrect mask after the
stepping was complete), so this was not easy to spot.

This fixes TestCreateDuringInstructionStep on the affected devices.

llvm-svn: 295440
2017-02-17 11:48:34 +00:00
..
builtin_trap Remove an ancient XFAIL from TestBuiltinTrap 2016-09-26 13:50:06 +00:00
thread/create_during_instruction_step NPL: Fix one more bug in the single step workaround 2017-02-17 11:48:34 +00:00