Correct logging for function calls that return SBValueList
authorEnrico Granata <egranata@apple.com>
Thu, 7 Feb 2013 22:22:27 +0000 (22:22 +0000)
committerEnrico Granata <egranata@apple.com>
Thu, 7 Feb 2013 22:22:27 +0000 (22:22 +0000)
llvm-svn: 174670

lldb/include/lldb/API/SBValueList.h
lldb/source/API/SBFrame.cpp
lldb/source/API/SBValueList.cpp

index 76654f3..5d046e4 100644 (file)
@@ -52,7 +52,14 @@ public:
     const lldb::SBValueList &
     operator = (const lldb::SBValueList &rhs);
 
+protected:
+    
+    void *
+    get ();
+
 private:
+    friend class SBFrame;
+    
     SBValueList (const ValueListImpl *lldb_object_ptr);
 
     void
@@ -73,8 +80,6 @@ private:
     const ValueListImpl &
     operator* () const;
     
-    ValueListImpl *
-    get ();
     
     ValueListImpl &
     ref ();
index 1283758..f339c90 100644 (file)
@@ -1159,7 +1159,7 @@ SBFrame::GetVariables (bool arguments,
 
     if (log)
     {
-        log->Printf ("SBFrame(%p)::GetVariables (...) => SBValueList", frame);
+        log->Printf ("SBFrame(%p)::GetVariables (...) => SBValueList(%p)", frame, value_list.get());
     }
 
     return value_list;
@@ -1209,7 +1209,7 @@ SBFrame::GetRegisters ()
     }
 
     if (log)
-        log->Printf ("SBFrame(%p)::GetRegisters () => SBValueList", frame);
+        log->Printf ("SBFrame(%p)::GetRegisters () => SBValueList(%p)", frame, value_list.get());
 
     return value_list;
 }
index 2ec4a7b..32b60f4 100644 (file)
@@ -262,7 +262,7 @@ SBValueList::FindValueObjectByUID (lldb::user_id_t uid)
     return sb_value;
 }
 
-ValueListImpl *
+void *
 SBValueList::get ()
 {
     return m_opaque_ap.get();