[Lldb-commits] [lldb] [lldb][Linux] Add overlay and effective permissions to "memory region" (PR #184115)
Omair Javaid via lldb-commits
lldb-commits at lists.llvm.org
Mon Apr 6 05:32:15 PDT 2026
================
@@ -152,6 +152,31 @@ class ABI : public PluginInterface {
static lldb::ABISP FindPlugin(lldb::ProcessSP process_sp, const ArchSpec &arch);
+ struct MemoryPermissions {
+ // Both of these are sets of lldb::Permissions values.
+ // Overlay are the permissions being applied to the original permissions.
+ uint32_t overlay;
+ // Effective is the result of applying the overlay to the original
+ // permissions. Calculating this is done by the plugin because some
+ // permission overlays are done as positive (add permissions) and some as
+ // negative (remove permissions).
+ uint32_t effective;
+ };
+
+ /// Get the permissions being overlayed for a given memory key, and the
+ /// resulting permissions after applying the overlay. Typically the protection
+ /// key is used to look up in some architecture specific set of permissions.
----------------
omjavaid wrote:
Is the protection key region specific or it has something to do with TLBs.
https://github.com/llvm/llvm-project/pull/184115
More information about the lldb-commits
mailing list