[Lldb-commits] [lldb] r247022 - Fix assertion failure caused by a bug in 128bit register handling in RegisterValue

Tamas Berghammer via lldb-commits lldb-commits at lists.llvm.org
Tue Sep 8 09:22:23 PDT 2015


Author: tberghammer
Date: Tue Sep  8 11:22:23 2015
New Revision: 247022

URL: http://llvm.org/viewvc/llvm-project?rev=247022&view=rev
Log:
Fix assertion failure caused by a bug in 128bit register handling in RegisterValue

Modified:
    lldb/trunk/include/lldb/Core/RegisterValue.h
    lldb/trunk/source/Core/RegisterValue.cpp

Modified: lldb/trunk/include/lldb/Core/RegisterValue.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/include/lldb/Core/RegisterValue.h?rev=247022&r1=247021&r2=247022&view=diff
==============================================================================
--- lldb/trunk/include/lldb/Core/RegisterValue.h (original)
+++ lldb/trunk/include/lldb/Core/RegisterValue.h Tue Sep  8 11:22:23 2015
@@ -299,7 +299,7 @@ namespace lldb_private {
         SetUInt128 (llvm::APInt uint)
         {
             m_type = eTypeUInt128;
-            m_scalar = llvm::APInt(uint);
+            m_scalar = uint;
         }
         bool
         SetUInt (uint64_t uint, uint32_t byte_size);

Modified: lldb/trunk/source/Core/RegisterValue.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Core/RegisterValue.cpp?rev=247022&r1=247021&r2=247022&view=diff
==============================================================================
--- lldb/trunk/source/Core/RegisterValue.cpp (original)
+++ lldb/trunk/source/Core/RegisterValue.cpp Tue Sep  8 11:22:23 2015
@@ -892,7 +892,7 @@ RegisterValue::SetUInt (uint64_t uint, u
     }
     else if (byte_size <= 16)
     {
-        SetUInt128 (llvm::APInt(64, uint));
+        SetUInt128 (llvm::APInt(128, uint));
     }
     else
         return false;




More information about the lldb-commits mailing list