[Lldb-commits] [lldb] r118070 - /lldb/trunk/source/Core/ValueObjectChild.cpp
Greg Clayton
gclayton at apple.com
Tue Nov 2 14:21:21 PDT 2010
Author: gclayton
Date: Tue Nov 2 16:21:20 2010
New Revision: 118070
URL: http://llvm.org/viewvc/llvm-project?rev=118070&view=rev
Log:
Fixed a case where children of pointers or references that had had multiple
children always incorrectly displayed the child at offset zero.
Modified:
lldb/trunk/source/Core/ValueObjectChild.cpp
Modified: lldb/trunk/source/Core/ValueObjectChild.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Core/ValueObjectChild.cpp?rev=118070&r1=118069&r2=118070&view=diff
==============================================================================
--- lldb/trunk/source/Core/ValueObjectChild.cpp (original)
+++ lldb/trunk/source/Core/ValueObjectChild.cpp Tue Nov 2 16:21:20 2010
@@ -159,10 +159,7 @@
}
else
{
- // For pointers, m_byte_offset should only ever be set if we
- // ValueObject::GetSyntheticArrayMemberFromPointer() was called
- if (ClangASTContext::IsPointerType (parent->GetClangType()) && m_byte_offset)
- m_value.GetScalar() += m_byte_offset;
+ m_value.GetScalar() += m_byte_offset;
if (value_type == Value::eValueTypeScalar ||
value_type == Value::eValueTypeFileAddress)
m_value.SetValueType (Value::eValueTypeLoadAddress);
More information about the lldb-commits
mailing list