[Lldb-commits] [lldb] r134636 - in /lldb/trunk: include/lldb/API/SBValue.h source/API/SBValue.cpp

Johnny Chen johnny.chen at apple.com
Thu Jul 7 13:46:24 PDT 2011


Author: johnny
Date: Thu Jul  7 15:46:23 2011
New Revision: 134636

URL: http://llvm.org/viewvc/llvm-project?rev=134636&view=rev
Log:
Add SBValue::GetID() member method call API.

Modified:
    lldb/trunk/include/lldb/API/SBValue.h
    lldb/trunk/source/API/SBValue.cpp

Modified: lldb/trunk/include/lldb/API/SBValue.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/include/lldb/API/SBValue.h?rev=134636&r1=134635&r2=134636&view=diff
==============================================================================
--- lldb/trunk/include/lldb/API/SBValue.h (original)
+++ lldb/trunk/include/lldb/API/SBValue.h Thu Jul  7 15:46:23 2011
@@ -44,6 +44,9 @@
     SBError
     GetError();
 
+    lldb::user_id_t
+    GetID ();
+    
     const char *
     GetName();
 

Modified: lldb/trunk/source/API/SBValue.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/API/SBValue.cpp?rev=134636&r1=134635&r2=134636&view=diff
==============================================================================
--- lldb/trunk/source/API/SBValue.cpp (original)
+++ lldb/trunk/source/API/SBValue.cpp Thu Jul  7 15:46:23 2011
@@ -82,6 +82,14 @@
     return sb_error;
 }
 
+user_id_t
+SBValue::GetID()
+{
+    if (m_opaque_sp)
+        return m_opaque_sp->GetID();
+    return LLDB_INVALID_UID;
+}
+
 const char *
 SBValue::GetName()
 {





More information about the lldb-commits mailing list