-
Notifications
You must be signed in to change notification settings - Fork 344
Implement DLQ_GetPtrAuthMask using info from debugserver. … #4110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement DLQ_GetPtrAuthMask using info from debugserver. … #4110
Conversation
I assume you're planning to land the generic part of this upstream? If so it might be nice to split this into 2 commits and then cherrypick the one to llvm.org once it's merged here. |
49a0063
to
23fa012
Compare
@swift-ci test |
This is needed by the Swift Plugin. See also swiftlang#4110. Differential Revision: https://reviews.llvm.org/D122347
rdar://90718091
@swift-ci test |
return false; | ||
case DLQ_GetPtrAuthMask: { | ||
assert(m_process.GetCodeAddressMask() == m_process.GetDataAddressMask() && | ||
"not supported"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: different code and address masks are not supported?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this code know if the mask returned is used for data or for code addresses? Linux standardized on the code/data masks, but I don't think the distinction is possible in AArch64, I'm not sure what target motivated that choice. I think a sanity check of ensuring that they're the same, if we don't know what this mask might be used for, is correct.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The swift::reflection::MemoryReader API doesn't distinguish between the two.
@swift-ci please test macos |
This is needed by the Swift Plugin. See also swiftlang/llvm-project#4110. Differential Revision: https://reviews.llvm.org/D122347
rdar://90718091