<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - lldb.SBProcess.is_running and lldb.SBProcess.is_stopped Python accessors"
   href="https://llvm.org/bugs/show_bug.cgi?id=28428">28428</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>lldb.SBProcess.is_running and lldb.SBProcess.is_stopped Python accessors
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>lldb
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>3.8
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Windows NT
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>All Bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>lldb-dev@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>marius.trandafir@live.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>lldb.SBProcess.is_running and lldb.SBProcess.is_stopped Python accessors are
not working as expected given that they're defined incorrectly. Both is_running
and is_stopped are mapped to __get_is_running__, which is defined twice.


In %LLDB_SOURCES%/scripts/interface/SBProcess.i there are the following lines
of code:


// Line 434
def __get_is_running__(self):
    '''Returns "True" if the process is currently running, "False" otherwise'''
    state = self.GetState()
    if state == eStateRunning or state == eStateStepping:
        return True
    return False

def __get_is_running__(self):
    '''Returns "True" if the process is currently stopped, "False" otherwise'''
    state = self.GetState()
    if state == eStateStopped or state == eStateCrashed or state ==
eStateSuspended:
        return True
    return False


// Line 474

__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.''')</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>