[Lldb-commits] [lldb] [lldb][Linux] Mark memory regions used for shadow stacks (PR #117861)

Omair Javaid via lldb-commits lldb-commits at lists.llvm.org
Wed Jan 8 11:18:25 PST 2025


================
@@ -1629,10 +1630,10 @@ Status GDBRemoteCommunicationClient::GetMemoryRegionInfo(
             std::tie(flag, flags) = flags.split(' ');
----------------
omjavaid wrote:

instead of tokenizing and checking cant we just use 
`if (value.contains("mt"))
  region_info.SetMemoryTagged(MemoryRegionInfo::eYes);

if (value.contains("ss"))
  region_info.SetIsShadowStack(MemoryRegionInfo::eYes);`

https://github.com/llvm/llvm-project/pull/117861


More information about the lldb-commits mailing list