================
@@ -1694,6 +1694,9 @@ class CommandObjectMemoryRegion : public
CommandObjectParsed {
MemoryRegionInfo::OptionalBool is_shadow_stack =
range_info.IsShadowStack();
if (is_shadow_stack == MemoryRegionInfo::OptionalBool::eYes)
result.AppendMessage("shadow stack: yes");
+ if (std::optional<unsigned> protection_key = range_info.GetProtectionKey())
+ result.AppendMessageWithFormat("protection key: %" PRIu32 "\n",
----------------
DavidSpickett wrote:
Now I realise I could use AppendMessageWithFormatv and be a lot neater but this
code is going to get extended in
https://github.com/llvm/llvm-project/pull/184115 anyway so I'll leave this as
it is.
https://github.com/llvm/llvm-project/pull/182246
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits