[Lldb-commits] [PATCH] D56147: [Core] Use the implementation method `GetAddressOf` in `ValueObjectConstResultChild`

Aleksandr Urakov via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Mon Jan 14 05:12:14 PST 2019


This revision was automatically updated to reflect the committed changes.
Closed by commit rL351065: [Core] Use the implementation method GetAddressOf in ValueObjectConstResultChild (authored by aleksandr.urakov, committed by ).
Herald added a subscriber: llvm-commits.

Changed prior to commit:
  https://reviews.llvm.org/D56147?vs=179682&id=181538#toc

Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D56147/new/

https://reviews.llvm.org/D56147

Files:
  lldb/trunk/include/lldb/Core/ValueObjectConstResultChild.h
  lldb/trunk/packages/Python/lldbsuite/test/python_api/value/TestValueAPI.py
  lldb/trunk/source/Core/ValueObjectConstResultChild.cpp


Index: lldb/trunk/source/Core/ValueObjectConstResultChild.cpp
===================================================================
--- lldb/trunk/source/Core/ValueObjectConstResultChild.cpp
+++ lldb/trunk/source/Core/ValueObjectConstResultChild.cpp
@@ -52,6 +52,11 @@
   return m_impl.AddressOf(error);
 }
 
+lldb::addr_t ValueObjectConstResultChild::GetAddressOf(
+  bool scalar_is_load_address, AddressType* address_type) {
+  return m_impl.GetAddressOf(scalar_is_load_address, address_type);
+}
+
 ValueObject *ValueObjectConstResultChild::CreateChildAtIndex(
     size_t idx, bool synthetic_array_member, int32_t synthetic_index) {
   return m_impl.CreateChildAtIndex(idx, synthetic_array_member,
Index: lldb/trunk/include/lldb/Core/ValueObjectConstResultChild.h
===================================================================
--- lldb/trunk/include/lldb/Core/ValueObjectConstResultChild.h
+++ lldb/trunk/include/lldb/Core/ValueObjectConstResultChild.h
@@ -63,6 +63,9 @@
 
   lldb::ValueObjectSP AddressOf(Status &error) override;
 
+  lldb::addr_t GetAddressOf(bool scalar_is_load_address = true,
+                            AddressType *address_type = nullptr) override;
+
   size_t GetPointeeData(DataExtractor &data, uint32_t item_idx = 0,
                         uint32_t item_count = 1) override;
 
Index: lldb/trunk/packages/Python/lldbsuite/test/python_api/value/TestValueAPI.py
===================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/python_api/value/TestValueAPI.py
+++ lldb/trunk/packages/Python/lldbsuite/test/python_api/value/TestValueAPI.py
@@ -153,6 +153,9 @@
         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(


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D56147.181538.patch
Type: text/x-patch
Size: 2005 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20190114/1a955259/attachment-0001.bin>


More information about the lldb-commits mailing list