[Lldb-commits] [lldb] [debugserver] Mark ASAN memory regions as "heap" (PR #113968)
via lldb-commits
lldb-commits at lists.llvm.org
Mon Oct 28 15:00:52 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-lldb
Author: Felipe de Azevedo Piovezan (felipepiovezan)
<details>
<summary>Changes</summary>
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.
---
Full diff: https://github.com/llvm/llvm-project/pull/113968.diff
1 Files Affected:
- (modified) lldb/tools/debugserver/source/MacOSX/MachVMRegion.cpp (+2-1)
``````````diff
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");
``````````
</details>
https://github.com/llvm/llvm-project/pull/113968
More information about the lldb-commits
mailing list