3 ms·
GDB can do that already. (gdb) help set scheduler-locking Set mode for locking scheduler during execution. off == no locking (threads may preempt at
by jamesfmilne 8y ago
GDB can do that already.
(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').
- giancarlostoro 8y agoGDB has all sorts of super powers but is there a GUI that works well with GDB?
- renox 8y agoYes, gdb --tui ;-)
- Arnavion 8y agoThe VS debugger can freeze threads too. Neither gdb nor VS can help AFAIK if the user doesn't want to freeze the other threads.