rtfb / riscv-hobby-os

Other
27 stars 5 forks source link

Set scheduler-locking on in gdbinit #48

Closed rtfb closed 2 years ago

rtfb commented 2 years ago

scheduler-locking controls how threads behave while we step one of them:

(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)

We need full control by default so let's set it to full locking.