[Lldb-commits] [lldb] 2d69bb7 - [lldb][AArch64] Initialise m_sve_state in NativeRegisterContextLinux

David Spickett via lldb-commits lldb-commits at lists.llvm.org
Thu Sep 21 07:04:25 PDT 2023


Author: David Spickett
Date: 2023-09-21T15:04:15+01:00
New Revision: 2d69bb721386af419824c93fbeb92f79861f1add

URL: https://github.com/llvm/llvm-project/commit/2d69bb721386af419824c93fbeb92f79861f1add
DIFF: https://github.com/llvm/llvm-project/commit/2d69bb721386af419824c93fbeb92f79861f1add.diff

LOG: [lldb][AArch64] Initialise m_sve_state in NativeRegisterContextLinux

I just fixed a bug in the core file equivalent where this was the issue.

This class avoids the issue by setting m_sve_state early but should
still be fixed so it doesn't crop up in a later refactor.

Added: 
    

Modified: 
    lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_arm64.h

Removed: 
    


################################################################################
diff  --git a/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_arm64.h b/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_arm64.h
index ed2653485c3e7da..9fc2e7c1d2b9d75 100644
--- a/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_arm64.h
+++ b/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_arm64.h
@@ -96,7 +96,7 @@ class NativeRegisterContextLinux_arm64
   RegisterInfoPOSIX_arm64::FPU
       m_fpr; // floating-point registers including extended register sets.
 
-  SVEState m_sve_state;
+  SVEState m_sve_state = SVEState::Unknown;
   struct sve::user_sve_header m_sve_header;
   std::vector<uint8_t> m_sve_ptrace_payload;
 


        


More information about the lldb-commits mailing list