summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/python_api/value
diff options
context:
space:
mode:
authorAleksandr Urakov <aleksandr.urakov@jetbrains.com>2019-01-14 13:08:13 +0000
committerAleksandr Urakov <aleksandr.urakov@jetbrains.com>2019-01-14 13:08:13 +0000
commitb4c1e4c2fb035ea49974cfd7c0ef2497502e18be (patch)
tree58cb95738ba5c6c54252a5c0e53fbf5bbaa7d545 /lldb/packages/Python/lldbsuite/test/python_api/value
parentceabe8b02f4cd355d018e34d93deef357aa80715 (diff)
downloadbcm5719-llvm-b4c1e4c2fb035ea49974cfd7c0ef2497502e18be.tar.gz
bcm5719-llvm-b4c1e4c2fb035ea49974cfd7c0ef2497502e18be.zip
[Core] Use the implementation method GetAddressOf in ValueObjectConstResultChild
Summary: This patch allows to retrieve an address object for `ValueObject`'s children retrieved through e.g. `GetChildAtIndex` or `GetChildMemberWithName`. It just uses the corresponding method of the implementation object `m_impl` to achieve that. Reviewers: zturner, JDevlieghere, clayborg, labath, serge-sans-paille Reviewed By: clayborg Subscribers: leonid.mashinskiy, lldb-commits Tags: #lldb Differential Revision: https://reviews.llvm.org/D56147 llvm-svn: 351065
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/value')
-rw-r--r--lldb/packages/Python/lldbsuite/test/python_api/value/TestValueAPI.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/python_api/value/TestValueAPI.py b/lldb/packages/Python/lldbsuite/test/python_api/value/TestValueAPI.py
index 8a4af0cc2b9..2299f1f1432 100644
--- a/lldb/packages/Python/lldbsuite/test/python_api/value/TestValueAPI.py
+++ b/lldb/packages/Python/lldbsuite/test/python_api/value/TestValueAPI.py
@@ -153,6 +153,9 @@ class ValueAPITestCase(TestBase):
val_s = target.EvaluateExpression('s')
val_a = target.EvaluateExpression('a')
self.assertTrue(
+ val_s.GetChildMemberWithName('a').GetAddress().IsValid(),
+ VALID_VARIABLE)
+ self.assertTrue(
val_s.GetChildMemberWithName('a').AddressOf(),
VALID_VARIABLE)
self.assertTrue(
OpenPOWER on IntegriCloud