This commit is contained in:
kd-11 2024-08-18 15:09:10 +03:00 committed by kd-11
parent ca4fa1ac74
commit fbcd8e32b8
2 changed files with 4 additions and 1 deletions

View file

@ -391,6 +391,9 @@ namespace aarch64
const auto this_name = f.getName().str();
// Insert breadcrumb info before the call
// WARNING: This can corrupt the call because LLVM somehow ignores the clobbered register during a call instruction for some reason
// In case of a blr on x27..x29 you can end up corrupting the binary, but it is invaluable for debugging.
// Debug frames are disabled in shipping code so this is not a big deal.
if (m_config.debug_info)
{
// Call-chain tracing