kern: implement memory debug

This commit is contained in:
Michael Scire committed 2020-12-10 16:32:19 -08:00
1 parent 6df26d674c
commit be8473cf65
10 files changed
+155 -2

No files matched your search

@@ -51,6 +51,15 @@ namespace ams::kern::svc {
KDumpObject::DumpHandle(arg0);
}
break;
case ams::svc::KernelDebugType_Memory:
if (arg0 == static_cast<u64>(-2)) {
KDumpObject::DumpKernelMemory();
} else if (arg0 == static_cast<u64>(-1)) {
KDumpObject::DumpMemory();
} else {
KDumpObject::DumpMemory(arg0);
}
break;
case ams::svc::KernelDebugType_Process:
if (arg0 == static_cast<u64>(-1)) {
KDumpObject::DumpProcess();