aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/Process/gdb-remote/GDBRemoteRegisterContext.cpp
diff options
context:
space:
mode:
authorJason Molenda <jmolenda@apple.com>2019-10-16 19:14:49 +0000
committerJason Molenda <jmolenda@apple.com>2019-10-16 19:14:49 +0000
commit7dd7a3607596a51044b8706ebf6df2e613ce1e9b (patch)
treeceaacaa39ab7238f81442a520fc67f7c17b7294f /lldb/source/Plugins/Process/gdb-remote/GDBRemoteRegisterContext.cpp
parent930ada91ce8ff9715e2ca7309bc946dbb9162dfb (diff)
downloadllvm-7dd7a3607596a51044b8706ebf6df2e613ce1e9b.zip
llvm-7dd7a3607596a51044b8706ebf6df2e613ce1e9b.tar.gz
llvm-7dd7a3607596a51044b8706ebf6df2e613ce1e9b.tar.bz2
Add arm64_32 support to lldb, an ILP32 codegen
that runs on arm64 ISA targets, specifically Apple watches. Differential Revision: https://reviews.llvm.org/D68858 llvm-svn: 375032
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/GDBRemoteRegisterContext.cpp')
-rw-r--r--lldb/source/Plugins/Process/gdb-remote/GDBRemoteRegisterContext.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteRegisterContext.cpp b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteRegisterContext.cpp
index 2bd0234..c06c952 100644
--- a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteRegisterContext.cpp
+++ b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteRegisterContext.cpp
@@ -637,7 +637,9 @@ bool GDBRemoteRegisterContext::WriteAllRegisterValues(
if (m_thread.GetProcess().get()) {
const ArchSpec &arch =
m_thread.GetProcess()->GetTarget().GetArchitecture();
- if (arch.IsValid() && arch.GetMachine() == llvm::Triple::aarch64 &&
+ if (arch.IsValid() &&
+ (arch.GetMachine() == llvm::Triple::aarch64 ||
+ arch.GetMachine() == llvm::Triple::aarch64_32) &&
arch.GetTriple().getVendor() == llvm::Triple::Apple &&
arch.GetTriple().getOS() == llvm::Triple::IOS) {
arm64_debugserver = true;