[Lldb-commits] [lldb] 5f6835d - [lldb][AArch64][Linux] Qualify uses of user_sve_header (#190130)

via lldb-commits lldb-commits at lists.llvm.org
Thu Apr 2 01:29:41 PDT 2026


Author: David Spickett
Date: 2026-04-02T08:29:34Z
New Revision: 5f6835daf481948f42740f5167221dba608a6493

URL: https://github.com/llvm/llvm-project/commit/5f6835daf481948f42740f5167221dba608a6493
DIFF: https://github.com/llvm/llvm-project/commit/5f6835daf481948f42740f5167221dba608a6493.diff

LOG: [lldb][AArch64][Linux] Qualify uses of user_sve_header (#190130)

Fixes #165413. Where a build failure was reported:
```
/b/s/w/ir/x/w/llvm-llvm-project/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_arm64.cpp:1182:9: error: unknown type name 'user_sve_header'; did you mean 'sve::user_sve_header'?
 1182 |         user_sve_header *header =
      |         ^~~~~~~~~~~~~~~
      |         sve::user_sve_header
```
To fix this, add sve:: as we do for all other uses of this.

This is LLDB's copy of a structure that Linux also defines. I think the
build worked on some machines because that version ended up being
included, but with a more isolated build, it may not.

We have our own definition of it so we can be sure what we're using in
case Linux extends it later.

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_arm64.cpp b/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_arm64.cpp
index 193c201f7929d..6c23f1e2c4d62 100644
--- a/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_arm64.cpp
+++ b/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_arm64.cpp
@@ -1179,9 +1179,9 @@ Status NativeRegisterContextLinux_arm64::WriteAllRegisterValues(
             (data_size + sve::vq_bytes - 1) / sve::vq_bytes * sve::vq_bytes;
         std::vector<uint8_t> sve_fpsimd_data(data_size);
 
-        user_sve_header *header =
-            reinterpret_cast<user_sve_header *>(sve_fpsimd_data.data());
-        std::memset(header, 0, sizeof(user_sve_header));
+        sve::user_sve_header *header =
+            reinterpret_cast<sve::user_sve_header *>(sve_fpsimd_data.data());
+        std::memset(header, 0, sizeof(sve::user_sve_header));
         header->size = sve_fpsimd_data.size();
         // VL = 0 tells the process to exit streaming mode.
         header->vl = 0;


        


More information about the lldb-commits mailing list