summaryrefslogtreecommitdiffstats
path: root/lldb/test/python_api
diff options
context:
space:
mode:
authorSiva Chandra <sivachandra@google.com>2015-08-18 17:56:06 +0000
committerSiva Chandra <sivachandra@google.com>2015-08-18 17:56:06 +0000
commit9851b1f62bddc6869a1693a2e335f67539804541 (patch)
tree1c5f0ba556d2ba3929017972766dfdd1d25c169e /lldb/test/python_api
parent7adc3a2b0e467c909f1489992da5f4c467c0d10f (diff)
downloadbcm5719-llvm-9851b1f62bddc6869a1693a2e335f67539804541.tar.gz
bcm5719-llvm-9851b1f62bddc6869a1693a2e335f67539804541.zip
[ValueObjectSynthetic and ValueObjectDynamicValue] Override GetDeclaration
Summary: Returns the declaration of the parent (non-synthetic or static) value. Reviewers: granata.enrico, clayborg Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D12092 llvm-svn: 245319
Diffstat (limited to 'lldb/test/python_api')
-rw-r--r--lldb/test/python_api/formatters/TestFormattersSBAPI.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/lldb/test/python_api/formatters/TestFormattersSBAPI.py b/lldb/test/python_api/formatters/TestFormattersSBAPI.py
index bd71ff341a4..39d123ac6a7 100644
--- a/lldb/test/python_api/formatters/TestFormattersSBAPI.py
+++ b/lldb/test/python_api/formatters/TestFormattersSBAPI.py
@@ -169,6 +169,7 @@ class SBFormattersAPITestCase(TestBase):
foo_var = self.dbg.GetSelectedTarget().GetProcess().GetSelectedThread().GetSelectedFrame().FindVariable('foo')
self.assertTrue(foo_var.IsValid(), 'could not find foo')
+ self.assertTrue(foo_var.GetDeclaration().IsValid(), 'foo declaration is invalid')
self.assertTrue(foo_var.GetNumChildren() == 2, 'synthetic value has wrong number of child items (synth)')
self.assertTrue(foo_var.GetChildMemberWithName('X').GetValueAsUnsigned() == 1, 'foo_synth.X has wrong value (synth)')
OpenPOWER on IntegriCloud