kern: SvcMapProcessCodeMemory, SvcUnmapProcessCodeMemory

This commit is contained in:
Michael Scire 2020-07-23 17:22:27 -07:00 committed by SciresM
parent 240e6227e9
commit 11d5353827
5 changed files with 267 additions and 4 deletions

View file

@ -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. */