[Lldb-commits] [lldb] [LLDB] Add more helper functions to ValueObject class. (PR #87197)

Greg Clayton via lldb-commits lldb-commits at lists.llvm.org
Mon Apr 1 12:59:46 PDT 2024


================
@@ -618,6 +631,24 @@ class ValueObject {
   virtual lldb::ValueObjectSP CastPointerType(const char *name,
                                               lldb::TypeSP &type_sp);
 
+  /// Return the target load address assocaited with this value object.
+  lldb::addr_t GetLoadAddress();
+
+  lldb::ValueObjectSP CastDerivedToBaseType(CompilerType type,
+                                            const std::vector<uint32_t> &idx);
----------------
clayborg wrote:

Maybe use `const llvm::ArrayRef<uint32_t>` instead of `const std::vector<uint32_t>`? Some headerdoc on what this does might be nice. I would guess `idx` contains a base class index path? Maybe renamed `idx` to something more descriptive?

https://github.com/llvm/llvm-project/pull/87197


More information about the lldb-commits mailing list