Skip to content

Commit c919d3c

Browse files
committed
[lldb] Implement DLQ_GetObjCInteropIsEnabled in LLDBMemoryReader
DLQ_GetObjCInteropIsEnabled was added as a query to queryDataLayout. Implement this query type.
1 parent 32d7841 commit c919d3c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lldb/source/Plugins/LanguageRuntime/Swift/LLDBMemoryReader.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,11 @@ bool LLDBMemoryReader::queryDataLayout(DataLayoutQueryType type, void *inBuffer,
7676
*result = 0x1000;
7777
return true;
7878
}
79+
case DLQ_GetObjCInteropIsEnabled: {
80+
auto *result = (bool *)outBuffer;
81+
*result = SwiftLanguageRuntime::GetObjCRuntime(m_process) != nullptr;
82+
return true;
83+
}
7984
}
8085
}
8186

0 commit comments

Comments
 (0)