[Lldb-commits] [PATCH] D112471: [LLDB] Fix Cpsr size for WoA64 target
Muhammad Omair Javaid via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Thu Nov 4 05:44:17 PDT 2021
This revision was automatically updated to reflect the committed changes.
Closed by commit rGb595137fe1c0: [LLDB] Fix Cpsr size for WoA64 target (authored by omjavaid).
Herald added a project: LLDB.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D112471/new/
https://reviews.llvm.org/D112471
Files:
lldb/source/Plugins/Process/Windows/Common/NativeRegisterContextWindows_arm64.cpp
lldb/source/Plugins/Process/Windows/Common/arm64/RegisterContextWindows_arm64.cpp
Index: lldb/source/Plugins/Process/Windows/Common/arm64/RegisterContextWindows_arm64.cpp
===================================================================
--- lldb/source/Plugins/Process/Windows/Common/arm64/RegisterContextWindows_arm64.cpp
+++ lldb/source/Plugins/Process/Windows/Common/arm64/RegisterContextWindows_arm64.cpp
@@ -171,7 +171,7 @@
reg_value.SetUInt64(m_context.Pc);
break;
case gpr_cpsr:
- reg_value.SetUInt64(m_context.Cpsr);
+ reg_value.SetUInt32(m_context.Cpsr);
break;
case gpr_w0:
@@ -385,7 +385,7 @@
m_context.Pc = reg_value.GetAsUInt64();
break;
case gpr_cpsr:
- m_context.Cpsr = reg_value.GetAsUInt64();
+ m_context.Cpsr = reg_value.GetAsUInt32();
break;
case fpu_v0:
Index: lldb/source/Plugins/Process/Windows/Common/NativeRegisterContextWindows_arm64.cpp
===================================================================
--- lldb/source/Plugins/Process/Windows/Common/NativeRegisterContextWindows_arm64.cpp
+++ lldb/source/Plugins/Process/Windows/Common/NativeRegisterContextWindows_arm64.cpp
@@ -220,7 +220,7 @@
reg_value.SetUInt64(tls_context.Pc);
break;
case gpr_cpsr_arm64:
- reg_value.SetUInt64(tls_context.Cpsr);
+ reg_value.SetUInt32(tls_context.Cpsr);
break;
case gpr_w0_arm64:
@@ -317,7 +317,7 @@
tls_context.Pc = reg_value.GetAsUInt64();
break;
case gpr_cpsr_arm64:
- tls_context.Cpsr = reg_value.GetAsUInt64();
+ tls_context.Cpsr = reg_value.GetAsUInt32();
break;
case gpr_w0_arm64:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D112471.384723.patch
Type: text/x-patch
Size: 1540 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20211104/cc8f6cdf/attachment.bin>
More information about the lldb-commits
mailing list