Avoid segfault when single stepping into an SVC

This commit is contained in:
roblabla 2017-12-10 21:48:35 +01:00
parent 437888490e
commit 13c6df347e

View file

@ -123,7 +123,8 @@ void ThreadManager::start() {
ctu->cpu.exec(wasStep ? 1 : INSN_PER_SLICE);
if(wasStep) {
ctu->gdbStub.haltLoop = ctu->gdbStub.stepLoop = false;
_current->freeze();
if (_current != nullptr)
_current->freeze();
ctu->gdbStub._break();
}
} else {