[llvm-bugs] [Bug 28428] New: lldb.SBProcess.is_running and lldb.SBProcess.is_stopped Python accessors
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Jul 5 09:54:47 PDT 2016
https://llvm.org/bugs/show_bug.cgi?id=28428
Bug ID: 28428
Summary: lldb.SBProcess.is_running and
lldb.SBProcess.is_stopped Python accessors
Product: lldb
Version: 3.8
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: All Bugs
Assignee: lldb-dev at lists.llvm.org
Reporter: marius.trandafir at live.com
CC: llvm-bugs at lists.llvm.org
Classification: Unclassified
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.''')
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160705/f31dc68a/attachment.html>
More information about the llvm-bugs
mailing list