by waynecochran · 8y ago · 0 comments
It's definitely possible to implement, but not as easy as using a regular INT 3 instruction.
I think the tab flashing is the critical detail, otherwise you would be confused why things are deadlocking.
(gdb) help set scheduler-locking
Set mode for locking scheduler during execution.
off == no locking (threads may preempt at any time)
on == full locking (no thread except the current thread may run)
step == scheduler locked during every single-step operation.
In this mode, no other thread may run during a step command.
Other threads may run while stepping over a function call ('next').