Core: Track exception on bad jumps.

This commit is contained in:
Unknown W. Brackets committed 2020-07-12 21:59:08 -07:00
1 parent b071db9ec2
commit 940066db68
6 files changed
+83 -1

No files matched your search

+9
View File
@@ -1305,6 +1305,15 @@ PC: %08x)",
info.pc);
draw2d->DrawTextShadow(ubuntu24, statbuf, x, y, 0xFFFFFFFF, FLAG_DYNAMIC_ASCII);
y += 120;
} else if (info.type == ExceptionType::BAD_EXEC_ADDR) {
snprintf(statbuf, sizeof(statbuf), R"(
Destination: %s to %08x
PC: %08x)",
ExecExceptionTypeAsString(info.exec_type),
info.address,
info.pc);
draw2d->DrawTextShadow(ubuntu24, statbuf, x, y, 0xFFFFFFFF, FLAG_DYNAMIC_ASCII);
y += 120;
}
std::string kernelState = __KernelStateSummary();