Skip to content

Commit 792b01b

Browse files
authored
Merge pull request #8084 from augusto2112/DLQ_GetObjCInteropIsEnabled
[lldb] Implement DLQ_GetObjCInteropIsEnabled in LLDBMemoryReader
2 parents da3789a + c919d3c commit 792b01b

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)