https://github.com/felipepiovezan created https://github.com/llvm/llvm-project/pull/113968
This memory type is currently not handled, but it makes sense to mark it as a heap allocation in requests asking for memory region info. >From 55d3e6002d05e71750daca208a93aa308dbb7512 Mon Sep 17 00:00:00 2001 From: Felipe de Azevedo Piovezan <fpiove...@apple.com> Date: Mon, 28 Oct 2024 14:27:55 -0700 Subject: [PATCH] [debugserver] Mark ASAN memory regions as "heap" This memory type is currently not handled, but it makes sense to mark it as a heap allocation in requests asking for memory region info. --- lldb/tools/debugserver/source/MacOSX/MachVMRegion.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lldb/tools/debugserver/source/MacOSX/MachVMRegion.cpp b/lldb/tools/debugserver/source/MacOSX/MachVMRegion.cpp index 60d4c3bc293a3c..97908b4acaf284 100644 --- a/lldb/tools/debugserver/source/MacOSX/MachVMRegion.cpp +++ b/lldb/tools/debugserver/source/MacOSX/MachVMRegion.cpp @@ -208,7 +208,8 @@ std::vector<std::string> MachVMRegion::GetMemoryTypes() const { m_data.user_tag == VM_MEMORY_MALLOC_LARGE_REUSABLE || m_data.user_tag == VM_MEMORY_MALLOC_HUGE || m_data.user_tag == VM_MEMORY_REALLOC || - m_data.user_tag == VM_MEMORY_SBRK) { + m_data.user_tag == VM_MEMORY_SBRK || + m_data.user_tag == VM_MEMORY_SANITIZER) { types.push_back("heap"); if (m_data.user_tag == VM_MEMORY_MALLOC_TINY) { types.push_back("malloc-tiny"); _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits