Skip to content

Commit 589fe1c

Browse files
[debugserver] Mark ASAN memory regions as "heap" (llvm#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. (cherry picked from commit 474234a)
1 parent ed11aa4 commit 589fe1c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lldb/tools/debugserver/source/MacOSX/MachVMRegion.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,8 @@ std::vector<std::string> MachVMRegion::GetMemoryTypes() const {
208208
m_data.user_tag == VM_MEMORY_MALLOC_LARGE_REUSABLE ||
209209
m_data.user_tag == VM_MEMORY_MALLOC_HUGE ||
210210
m_data.user_tag == VM_MEMORY_REALLOC ||
211-
m_data.user_tag == VM_MEMORY_SBRK) {
211+
m_data.user_tag == VM_MEMORY_SBRK ||
212+
m_data.user_tag == VM_MEMORY_SANITIZER) {
212213
types.push_back("heap");
213214
if (m_data.user_tag == VM_MEMORY_MALLOC_TINY) {
214215
types.push_back("malloc-tiny");

0 commit comments

Comments
 (0)