JDevlieghere created this revision. JDevlieghere added reviewers: labath, clayborg, ted, paolosev. Herald added subscribers: abidh, sunfish, aheejin. Herald added a project: LLDB.
The WASM and Hexagon plugin check the ArchType rather than the OSType, so explicitly reject those in the DynamicLoaderStatic. Repository: rLLDB LLDB https://reviews.llvm.org/D74780 Files: lldb/source/Plugins/DynamicLoader/Static/DynamicLoaderStatic.cpp Index: lldb/source/Plugins/DynamicLoader/Static/DynamicLoaderStatic.cpp =================================================================== --- lldb/source/Plugins/DynamicLoader/Static/DynamicLoaderStatic.cpp +++ lldb/source/Plugins/DynamicLoader/Static/DynamicLoaderStatic.cpp @@ -29,8 +29,19 @@ const llvm::Triple &triple_ref = process->GetTarget().GetArchitecture().GetTriple(); const llvm::Triple::OSType os_type = triple_ref.getOS(); - if ((os_type == llvm::Triple::UnknownOS)) - create = true; + const llvm::Triple::ArchType arch_type = triple_ref.getArch(); + if (os_type == llvm::Triple::UnknownOS) { + // The WASM and Hexagon plugin check the ArchType rather than the OSType, + // so explicitly reject those here. + switch(arch_type) { + case llvm::Triple::hexagon: + case llvm::Triple::wasm32: + case llvm::Triple::wasm64: + break; + default: + create = true; + } + } } if (!create) {
Index: lldb/source/Plugins/DynamicLoader/Static/DynamicLoaderStatic.cpp =================================================================== --- lldb/source/Plugins/DynamicLoader/Static/DynamicLoaderStatic.cpp +++ lldb/source/Plugins/DynamicLoader/Static/DynamicLoaderStatic.cpp @@ -29,8 +29,19 @@ const llvm::Triple &triple_ref = process->GetTarget().GetArchitecture().GetTriple(); const llvm::Triple::OSType os_type = triple_ref.getOS(); - if ((os_type == llvm::Triple::UnknownOS)) - create = true; + const llvm::Triple::ArchType arch_type = triple_ref.getArch(); + if (os_type == llvm::Triple::UnknownOS) { + // The WASM and Hexagon plugin check the ArchType rather than the OSType, + // so explicitly reject those here. + switch(arch_type) { + case llvm::Triple::hexagon: + case llvm::Triple::wasm32: + case llvm::Triple::wasm64: + break; + default: + create = true; + } + } } if (!create) {
_______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits