[Lldb-commits] [lldb] [lldb][debugserver] ifdef guard around newer CPU_TYPEs (PR #195225)
Jason Molenda via lldb-commits
lldb-commits at lists.llvm.org
Thu Apr 30 23:37:37 PDT 2026
https://github.com/jasonmolenda created https://github.com/llvm/llvm-project/pull/195225
The uses of the new CPU_SUBTYPEs depends on building with a newer SDK that we don't have on Intel CI bots. Put idef guards around them, debugserver won't be
working with these CPUs either way.
>From c45c4e72a9cfa7e830099d97990c0cdd4c7af378 Mon Sep 17 00:00:00 2001
From: Jason Molenda <jmolenda at apple.com>
Date: Thu, 30 Apr 2026 23:34:07 -0700
Subject: [PATCH] [lldb][debugserver] ifdef guard around newer CPU_TYPEs
The uses of the new CPU_SUBTYPEs depends on building
with a newer SDK that we don't have on Intel CI bots.
Put idef guards around them, debugserver won't be
working with these CPUs either way.
---
lldb/tools/debugserver/source/DNB.cpp | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/lldb/tools/debugserver/source/DNB.cpp b/lldb/tools/debugserver/source/DNB.cpp
index 91b0ea2edc5d3..4febb1797def7 100644
--- a/lldb/tools/debugserver/source/DNB.cpp
+++ b/lldb/tools/debugserver/source/DNB.cpp
@@ -1880,15 +1880,21 @@ nub_bool_t DNBSetArchitecture(const char *arch) {
else if (strstr(arch, "arm64") == arch || strstr(arch, "aarch64") == arch)
return DNBArchProtocol::SetArchitecture(CPU_TYPE_ARM64,
CPU_SUBTYPE_ARM64_ALL);
+#if defined(CPU_SUBTYPE_ARM_V8M_MAIN)
else if (strstr(arch, "armv8m.main") == arch)
return DNBArchProtocol::SetArchitecture(CPU_TYPE_ARM,
CPU_SUBTYPE_ARM_V8M_MAIN);
+#endif
+#if defined(CPU_SUBTYPE_ARM_V8M_BASE)
else if (strstr(arch, "armv8m.base") == arch)
return DNBArchProtocol::SetArchitecture(CPU_TYPE_ARM,
CPU_SUBTYPE_ARM_V8M_BASE);
+#endif
+#if defined(CPU_SUBTYPE_ARM_V8_1M_MAIN)
else if (strstr(arch, "armv8.1m.main") == arch)
return DNBArchProtocol::SetArchitecture(CPU_TYPE_ARM,
CPU_SUBTYPE_ARM_V8_1M_MAIN);
+#endif
else if (strstr(arch, "armv8") == arch)
return DNBArchProtocol::SetArchitecture(CPU_TYPE_ARM64,
CPU_SUBTYPE_ARM64_V8);
More information about the lldb-commits
mailing list