Implement GetInfo #8 IsCurrentProcessBeingDebugged

This commit is contained in:
Ryan Teal 2019-07-03 20:53:51 +01:00
parent 3ed3365d81
commit 0eef380781
No known key found for this signature in database
GPG Key ID: 8DBEE0F12C7E2D23

View File

@ -21,6 +21,9 @@ namespace core::kernel {
{
switch (GetRegister(UC_ARM64_REG_X1))
{
case 8: // IsCurrentProcessBeingDebugged
SetRegister(UC_ARM64_REG_X1, 0); // We're just lying to ourselves. Think about it
break;
case 12: // AddressSpaceBaseAddr
SetRegister(UC_ARM64_REG_X1, BASE_ADDRESS);
break;