regcache->raw_collect (regno++, &cregset.cctlr);
if (ptrace (PTRACE_SETREGSET, tid, NT_ARM_MORELLO, &iovec) < 0)
- perror_with_name (_("Unable to store capability registers."));
+ perror_with_name (_("Unable to store capability registers.\n"
+ "Please run \"sysctl cheri.ptrace_forge_cap=1\"."));
}
/* Implement the "fetch_registers" target_ops method. */
memcpy (&cap.val, buffer.data () + 1, 16);
if (!aarch64_linux_write_capability (tid, addr, cap))
- perror_with_name (_("Unable to write capability from address."));
+ perror_with_name (_("Unable to write capability to address.\n"
+ "Please run \"sysctl cheri.ptrace_forge_cap=1\"."));
return true;
}
if (!aarch64_linux_write_capability (tid, address, cap))
{
- warning (_("Unable to write capability to address."));
+ warning (_("Unable to write capability to address.\n"
+ "Please run \"sysctl cheri.ptrace_forge_cap=1\"."));
return 0;
}
}