kern: SvcMapProcessCodeMemory, SvcUnmapProcessCodeMemory

This commit is contained in:
Michael Scire authored and SciresM committed 2020-07-31 14:50:52 -07:00
1 parent 240e6227e9
commit 11d5353827
5 files changed
+267 -4

No files matched your search

@@ -107,6 +107,18 @@ namespace ams::kern::svc {
}
}
break;
case ams::svc::InfoType_DebuggerAttached:
{
/* Verify the input handle is invalid. */
R_UNLESS(handle == ams::svc::InvalidHandle, svc::ResultInvalidHandle());
/* Verify the sub-type is valid. */
R_UNLESS(info_subtype == 0, svc::ResultInvalidCombination());
/* Get whether debugger is attached. */
*out = GetCurrentProcess().GetDebugObject() != nullptr;
}
break;
case ams::svc::InfoType_ResourceLimit:
{
/* Verify the input handle is invalid. */