[Lldb-commits] [lldb] r274568 - Fix "lldb.SBProcess.is_stopped" and "lldb.SBProcess.is_running" to do the right thing.

Greg Clayton via lldb-commits lldb-commits at lists.llvm.org
Tue Jul 5 11:19:44 PDT 2016


Author: gclayton
Date: Tue Jul  5 13:19:43 2016
New Revision: 274568

URL: http://llvm.org/viewvc/llvm-project?rev=274568&view=rev
Log:
Fix "lldb.SBProcess.is_stopped" and "lldb.SBProcess.is_running" to do the right thing. 

https://llvm.org/bugs/show_bug.cgi?id=28428


Modified:
    lldb/trunk/scripts/interface/SBProcess.i

Modified: lldb/trunk/scripts/interface/SBProcess.i
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/scripts/interface/SBProcess.i?rev=274568&r1=274567&r2=274568&view=diff
==============================================================================
--- lldb/trunk/scripts/interface/SBProcess.i (original)
+++ lldb/trunk/scripts/interface/SBProcess.i Tue Jul  5 13:19:43 2016
@@ -428,7 +428,7 @@ public:
                 return True
             return False
 
-        def __get_is_running__(self):
+        def __get_is_stopped__(self):
             '''Returns "True" if the process is currently stopped, "False" otherwise'''
             state = self.GetState()
             if state == eStateStopped or state == eStateCrashed or state == eStateSuspended:
@@ -474,8 +474,8 @@ public:
         __swig_getmethods__["is_running"] = __get_is_running__
         if _newclass: is_running = property(__get_is_running__, None, doc='''A read only property that returns a boolean value that indicates if this process is currently running.''')
 
-        __swig_getmethods__["is_stopped"] = __get_is_running__
-        if _newclass: is_stopped = property(__get_is_running__, None, doc='''A read only property that returns a boolean value that indicates if this process is currently stopped.''')
+        __swig_getmethods__["is_stopped"] = __get_is_stopped__
+        if _newclass: is_stopped = property(__get_is_stopped__, None, doc='''A read only property that returns a boolean value that indicates if this process is currently stopped.''')
 
         __swig_getmethods__["id"] = GetProcessID
         if _newclass: id = property(GetProcessID, None, doc='''A read only property that returns the process ID as an integer.''')




More information about the lldb-commits mailing list