Fix crash in CPU debugger. Thanks @x1nixmzeng

This commit is contained in:
Dr. Chat 2016-07-24 10:47:14 -05:00
parent 9e646085f0
commit a065120793
1 changed files with 3 additions and 0 deletions

View File

@ -1394,6 +1394,9 @@ void DebugWindow::SelectThreadStackFrame(cpu::ThreadDebugInfo* thread_info,
state_.thread_stack_frame_index = stack_frame_index;
state_.has_changed_thread = true;
}
if (state_.thread_info && state_.thread_info->frames.empty()) {
return;
}
if (state_.thread_info) {
auto new_host_pc =
state_.thread_info->frames[state_.thread_stack_frame_index].host_pc;