[Lldb-commits] [lldb] r174670 - Correct logging for function calls that return SBValueList
Enrico Granata
egranata at apple.com
Thu Feb 7 14:22:28 PST 2013
Author: enrico
Date: Thu Feb 7 16:22:27 2013
New Revision: 174670
URL: http://llvm.org/viewvc/llvm-project?rev=174670&view=rev
Log:
Correct logging for function calls that return SBValueList
Modified:
lldb/trunk/include/lldb/API/SBValueList.h
lldb/trunk/source/API/SBFrame.cpp
lldb/trunk/source/API/SBValueList.cpp
Modified: lldb/trunk/include/lldb/API/SBValueList.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/include/lldb/API/SBValueList.h?rev=174670&r1=174669&r2=174670&view=diff
==============================================================================
--- lldb/trunk/include/lldb/API/SBValueList.h (original)
+++ lldb/trunk/include/lldb/API/SBValueList.h Thu Feb 7 16:22:27 2013
@@ -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 ();
Modified: lldb/trunk/source/API/SBFrame.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/API/SBFrame.cpp?rev=174670&r1=174669&r2=174670&view=diff
==============================================================================
--- lldb/trunk/source/API/SBFrame.cpp (original)
+++ lldb/trunk/source/API/SBFrame.cpp Thu Feb 7 16:22:27 2013
@@ -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;
}
Modified: lldb/trunk/source/API/SBValueList.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/API/SBValueList.cpp?rev=174670&r1=174669&r2=174670&view=diff
==============================================================================
--- lldb/trunk/source/API/SBValueList.cpp (original)
+++ lldb/trunk/source/API/SBValueList.cpp Thu Feb 7 16:22:27 2013
@@ -262,7 +262,7 @@ SBValueList::FindValueObjectByUID (lldb:
return sb_value;
}
-ValueListImpl *
+void *
SBValueList::get ()
{
return m_opaque_ap.get();
More information about the lldb-commits
mailing list