summaryrefslogtreecommitdiffstats
path: root/lldb/source/Core/ValueObjectChild.cpp
diff options
context:
space:
mode:
authorEnrico Granata <egranata@apple.com>2015-05-19 18:53:13 +0000
committerEnrico Granata <egranata@apple.com>2015-05-19 18:53:13 +0000
commit451858623490acf19a886de687b9d2de80028092 (patch)
treee7933481a61a58f8efbce5f9b0fb3979743d88c8 /lldb/source/Core/ValueObjectChild.cpp
parent99bdd98a2bfc63593104f656d8166f369b8a0716 (diff)
downloadbcm5719-llvm-451858623490acf19a886de687b9d2de80028092.tar.gz
bcm5719-llvm-451858623490acf19a886de687b9d2de80028092.zip
A previous patch made it so that ValueObjects could update themselves even in the face of an invalid execution context (which was required for the dynamic and synthetic values of const objects)
It turns out, child values also need similar provisions This patch simplifies things a bit allowing ValueObject subclasses to just declare whether they can accept an invalid context at update time, and letting the update machinery in the EvaluationPoint to the rest Also, this lets ValueObjectChild proclaim that its parent chooses whether such blank-slate updates are possible llvm-svn: 237714
Diffstat (limited to 'lldb/source/Core/ValueObjectChild.cpp')
-rw-r--r--lldb/source/Core/ValueObjectChild.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/lldb/source/Core/ValueObjectChild.cpp b/lldb/source/Core/ValueObjectChild.cpp
index 2b3c8344af8..c1e45e1f48d 100644
--- a/lldb/source/Core/ValueObjectChild.cpp
+++ b/lldb/source/Core/ValueObjectChild.cpp
@@ -110,6 +110,14 @@ ValueObjectChild::GetDisplayTypeName()
}
bool
+ValueObjectChild::CanUpdateWithInvalidExecutionContext ()
+{
+ if (m_parent)
+ return m_parent->CanUpdateWithInvalidExecutionContext();
+ return this->ValueObject::CanUpdateWithInvalidExecutionContext();
+}
+
+bool
ValueObjectChild::UpdateValue ()
{
m_error.Clear();
OpenPOWER on IntegriCloud