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

Jim Ingham jingham at apple.com
Wed Jun 6 11:46:25 PDT 2012


Author: jingham
Date: Wed Jun  6 13:46:25 2012
New Revision: 158092

URL: http://llvm.org/viewvc/llvm-project?rev=158092&view=rev
Log:
Add the SBWatchpoint::GetError back, we have clients who use it.

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

Modified: lldb/trunk/include/lldb/API/SBWatchpoint.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/include/lldb/API/SBWatchpoint.h?rev=158092&r1=158091&r2=158092&view=diff
==============================================================================
--- lldb/trunk/include/lldb/API/SBWatchpoint.h (original)
+++ lldb/trunk/include/lldb/API/SBWatchpoint.h Wed Jun  6 13:46:25 2012
@@ -32,6 +32,9 @@
     bool
     IsValid() const;
 
+    SBError
+    GetError();
+
     watch_id_t
     GetID ();
 

Modified: lldb/trunk/source/API/SBWatchpoint.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/API/SBWatchpoint.cpp?rev=158092&r1=158091&r2=158092&view=diff
==============================================================================
--- lldb/trunk/source/API/SBWatchpoint.cpp (original)
+++ lldb/trunk/source/API/SBWatchpoint.cpp Wed Jun  6 13:46:25 2012
@@ -90,6 +90,18 @@
     return m_opaque_sp;
 }
 
+SBError
+SBWatchpoint::GetError ()
+{
+    SBError sb_error;
+    lldb::WatchpointSP watchpoint_sp(GetSP());
+    if (watchpoint_sp)
+    {
+        sb_error.SetError(watchpoint_sp->GetError());
+    }
+    return sb_error;
+}
+
 int32_t
 SBWatchpoint::GetHardwareIndex ()
 {





More information about the lldb-commits mailing list