summaryrefslogtreecommitdiffstats
path: root/lldb/source/Core/ValueObject.cpp
diff options
context:
space:
mode:
authorEnrico Granata <egranata@apple.com>2012-03-06 23:21:16 +0000
committerEnrico Granata <egranata@apple.com>2012-03-06 23:21:16 +0000
commit297e69f15e501efdbcb8063ab25496144742cd89 (patch)
treedef6dd75fd5ee36ca87fcd6ddcce42f8e2260eb7 /lldb/source/Core/ValueObject.cpp
parent909c47ba7053e9e05132e72a931ed1eaee86ec4f (diff)
downloadbcm5719-llvm-297e69f15e501efdbcb8063ab25496144742cd89.tar.gz
bcm5719-llvm-297e69f15e501efdbcb8063ab25496144742cd89.zip
Fixing an issue where a ValueObject had changed its value but the 'value changed' flag was not being set. This was breaking one of our test cases
llvm-svn: 152161
Diffstat (limited to 'lldb/source/Core/ValueObject.cpp')
-rw-r--r--lldb/source/Core/ValueObject.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/lldb/source/Core/ValueObject.cpp b/lldb/source/Core/ValueObject.cpp
index 3d82995b083..aac8e8e99f3 100644
--- a/lldb/source/Core/ValueObject.cpp
+++ b/lldb/source/Core/ValueObject.cpp
@@ -1204,7 +1204,15 @@ ValueObject::GetValueAsCString ()
}
}
}
- GetValueAsCString(my_format, m_value_str);
+ if (GetValueAsCString(my_format, m_value_str))
+ {
+ if (!m_value_did_change && m_old_value_valid)
+ {
+ // The value was gotten successfully, so we consider the
+ // value as changed if the value string differs
+ SetValueDidChange (m_old_value_str != m_value_str);
+ }
+ }
}
if (m_value_str.empty())
return NULL;
OpenPOWER on IntegriCloud