[Lldb-commits] [lldb] [lldb][Windows] Cache thread context in NativeRegisterContextWindows_arm64 (PR #197385)
David Spickett via lldb-commits
lldb-commits at lists.llvm.org
Thu May 14 02:30:28 PDT 2026
================
@@ -267,11 +297,15 @@ Status NativeRegisterContextWindows_arm64::GPRRead(const uint32_t reg,
Status
NativeRegisterContextWindows_arm64::GPRWrite(const uint32_t reg,
const RegisterValue ®_value) {
- ::CONTEXT tls_context;
- DWORD context_flag = CONTEXT_CONTROL | CONTEXT_INTEGER;
+ auto cleanup = llvm::make_scope_exit([&]() { m_context = nullptr; });
----------------
DavidSpickett wrote:
Yes that sounds good. It will avoid an allocation in most cases, but reallocate if for example SVE resized since last time.
https://github.com/llvm/llvm-project/pull/197385
More information about the lldb-commits
mailing list