[Lldb-commits] [lldb] r182326 - <rdar://problem/13925626>

Enrico Granata egranata at apple.com
Mon May 20 15:49:14 PDT 2013


Author: enrico
Date: Mon May 20 17:49:13 2013
New Revision: 182326

URL: http://llvm.org/viewvc/llvm-project?rev=182326&view=rev
Log:
<rdar://problem/13925626>

Replacing an assertion with an error - at least we won’t crash

Modified:
    lldb/trunk/source/Core/ValueObjectVariable.cpp

Modified: lldb/trunk/source/Core/ValueObjectVariable.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Core/ValueObjectVariable.cpp?rev=182326&r1=182325&r2=182326&view=diff
==============================================================================
--- lldb/trunk/source/Core/ValueObjectVariable.cpp (original)
+++ lldb/trunk/source/Core/ValueObjectVariable.cpp Mon May 20 17:49:13 2013
@@ -187,7 +187,7 @@ ValueObjectVariable::UpdateValue ()
             switch (value_type)
             {
             default:
-                assert(!"Unhandled expression result value kind...");
+                m_error.SetErrorStringWithFormat("Variable %s has an expression result value %d which is currently unhandled",variable->GetName().GetCString(),value_type);
                 break;
 
             case Value::eValueTypeScalar:





More information about the lldb-commits mailing list