Skip to content

Commit 095525b

Browse files
committed
Avoid initializing the DarwinDYLD for all unknown os cases
1 parent f615269 commit 095525b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,10 @@ DynamicLoader *DynamicLoaderDarwinKernel::CreateInstance(Process *process,
178178
// If we have triple like armv7-unknown-unknown, we should try looking for
179179
// a Darwin kernel.
180180
case llvm::Triple::UnknownOS:
181+
// limiting it to only arm arch to handle cases like armv7-unknown-unknown
182+
if (triple_ref.getArch() != llvm::Triple::arm) {
183+
return nullptr;
184+
}
181185
break;
182186
default:
183187
return nullptr;

0 commit comments

Comments
 (0)