[Lldb-commits] [lldb] r194413 - Increase log detail for size mismatch in EntityVariable::Materialize

Ed Maste emaste at freebsd.org
Mon Nov 11 11:40:52 PST 2013


Author: emaste
Date: Mon Nov 11 13:40:51 2013
New Revision: 194413

URL: http://llvm.org/viewvc/llvm-project?rev=194413&view=rev
Log:
Increase log detail for size mismatch in EntityVariable::Materialize

Modified:
    lldb/trunk/source/Expression/Materializer.cpp

Modified: lldb/trunk/source/Expression/Materializer.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Expression/Materializer.cpp?rev=194413&r1=194412&r2=194413&view=diff
==============================================================================
--- lldb/trunk/source/Expression/Materializer.cpp (original)
+++ lldb/trunk/source/Expression/Materializer.cpp Mon Nov 11 13:40:51 2013
@@ -492,7 +492,7 @@ public:
                     }
                     else
                     {
-                        err.SetErrorStringWithFormat("size of variable %s disagrees with the ValueObject's size", m_variable_sp->GetName().AsCString());
+                        err.SetErrorStringWithFormat("size of variable %s (%zu) disagrees with the ValueObject's size (%zu)", m_variable_sp->GetName().AsCString(), m_variable_sp->GetType()->GetByteSize(), data.GetByteSize());
                     }
                     return;
                 }





More information about the lldb-commits mailing list