Merge pull request #190 from bunnei/fix-qt-waittree

debugger: Fix wait_tree crash.
This commit is contained in:
bunnei 2018-02-14 10:18:56 -05:00 committed by GitHub
commit b65c096be5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -168,7 +168,7 @@ QString WaitTreeThread::GetText() const {
} }
QString pc_info = tr(" PC = 0x%1 LR = 0x%2") QString pc_info = tr(" PC = 0x%1 LR = 0x%2")
.arg(thread.context.pc, 8, 16, QLatin1Char('0')) .arg(thread.context.pc, 8, 16, QLatin1Char('0'))
.arg(thread.context.cpu_registers[31], 8, 16, QLatin1Char('0')); .arg(thread.context.cpu_registers[30], 8, 16, QLatin1Char('0'));
return WaitTreeWaitObject::GetText() + pc_info + " (" + status + ") "; return WaitTreeWaitObject::GetText() + pc_info + " (" + status + ") ";
} }