[Lldb-commits] [lldb] d1b83b9 - [LLDB] Fix x86_64 build

David Spickett via lldb-commits lldb-commits at lists.llvm.org
Wed Oct 12 02:21:06 PDT 2022


Author: David Spickett
Date: 2022-10-12T09:19:29Z
New Revision: d1b83b984fc1715fb7540dbb03ac8d170775b395

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

LOG: [LLDB] Fix x86_64 build

28e65a6a63ab39be97d1a88fe7b4d0fa2f532643 changed the parameter
type of SetType but I forgot to build on x86 as well as arm64.

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_x86_64.cpp b/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_x86_64.cpp
index e23ec49ee6184..ba6be2357ff9f 100644
--- a/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_x86_64.cpp
+++ b/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_x86_64.cpp
@@ -457,7 +457,7 @@ NativeRegisterContextLinux_x86_64::ReadRegister(const RegisterInfo *reg_info,
       // then use the type specified by reg_info rather than the uint64_t
       // default
       if (reg_value.GetByteSize() > reg_info->byte_size)
-        reg_value.SetType(reg_info);
+        reg_value.SetType(*reg_info);
     }
     return error;
   }


        


More information about the lldb-commits mailing list