mirror of
https://github.com/reswitched/Mephisto.git
synced 2024-06-16 03:16:50 -04:00
Avoid segfault when single stepping into an SVC
This commit is contained in:
parent
437888490e
commit
13c6df347e
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue