summaryrefslogtreecommitdiffstats
path: root/lldb/test/python_api/lldbutil
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/test/python_api/lldbutil')
-rw-r--r--lldb/test/python_api/lldbutil/frame/TestFrameUtils.py8
-rw-r--r--lldb/test/python_api/lldbutil/iter/TestLLDBIterator.py10
-rw-r--r--lldb/test/python_api/lldbutil/iter/TestRegistersIterator.py6
-rw-r--r--lldb/test/python_api/lldbutil/process/TestPrintStackTraces.py10
4 files changed, 17 insertions, 17 deletions
diff --git a/lldb/test/python_api/lldbutil/frame/TestFrameUtils.py b/lldb/test/python_api/lldbutil/frame/TestFrameUtils.py
index ff9723b4036..1fd337a78b1 100644
--- a/lldb/test/python_api/lldbutil/frame/TestFrameUtils.py
+++ b/lldb/test/python_api/lldbutil/frame/TestFrameUtils.py
@@ -33,15 +33,15 @@ class FrameUtilsTestCase(TestBase):
self.assertTrue(breakpoint, VALID_BREAKPOINT)
# Now launch the process, and do not stop at entry point.
- self.process = target.LaunchSimple(None, None, os.getcwd())
+ process = target.LaunchSimple(None, None, os.getcwd())
- if not self.process:
+ if not process:
self.fail("SBTarget.LaunchProcess() failed")
- self.assertTrue(self.process.GetState() == lldb.eStateStopped,
+ self.assertTrue(process.GetState() == lldb.eStateStopped,
PROCESS_STOPPED)
import lldbutil
- thread = lldbutil.get_stopped_thread(self.process, lldb.eStopReasonBreakpoint)
+ thread = lldbutil.get_stopped_thread(process, lldb.eStopReasonBreakpoint)
frame0 = thread.GetFrameAtIndex(0)
frame1 = thread.GetFrameAtIndex(1)
parent = lldbutil.get_parent_frame(frame0)
diff --git a/lldb/test/python_api/lldbutil/iter/TestLLDBIterator.py b/lldb/test/python_api/lldbutil/iter/TestLLDBIterator.py
index cc941578666..c9862fe9e05 100644
--- a/lldb/test/python_api/lldbutil/iter/TestLLDBIterator.py
+++ b/lldb/test/python_api/lldbutil/iter/TestLLDBIterator.py
@@ -45,9 +45,9 @@ class LLDBIteratorTestCase(TestBase):
# Now launch the process, and do not stop at entry point.
rc = lldb.SBError()
- self.process = target.Launch (self.dbg.GetListener(), None, None, os.ctermid(), os.ctermid(), os.ctermid(), None, 0, False, rc)
+ process = target.Launch (self.dbg.GetListener(), None, None, os.ctermid(), os.ctermid(), os.ctermid(), None, 0, False, rc)
- if not rc.Success() or not self.process:
+ if not rc.Success() or not process:
self.fail("SBTarget.LaunchProcess() failed")
from lldbutil import get_description
@@ -106,14 +106,14 @@ class LLDBIteratorTestCase(TestBase):
# Now launch the process, and do not stop at entry point.
rc = lldb.SBError()
- self.process = target.Launch (self.dbg.GetListener(), None, None, os.ctermid(), os.ctermid(), os.ctermid(), None, 0, False, rc)
+ process = target.Launch (self.dbg.GetListener(), None, None, os.ctermid(), os.ctermid(), os.ctermid(), None, 0, False, rc)
- if not rc.Success() or not self.process:
+ if not rc.Success() or not process:
self.fail("SBTarget.LaunchProcess() failed")
from lldbutil import print_stacktrace
stopped_due_to_breakpoint = False
- for thread in self.process:
+ for thread in process:
if self.TraceOn():
print_stacktrace(thread)
ID = thread.GetThreadID()
diff --git a/lldb/test/python_api/lldbutil/iter/TestRegistersIterator.py b/lldb/test/python_api/lldbutil/iter/TestRegistersIterator.py
index 8e66d37d5f8..c4bbad63f0a 100644
--- a/lldb/test/python_api/lldbutil/iter/TestRegistersIterator.py
+++ b/lldb/test/python_api/lldbutil/iter/TestRegistersIterator.py
@@ -34,13 +34,13 @@ class RegistersIteratorTestCase(TestBase):
# Now launch the process, and do not stop at entry point.
rc = lldb.SBError()
- self.process = target.Launch (self.dbg.GetListener(), None, None, os.ctermid(), os.ctermid(), os.ctermid(), None, 0, False, rc)
+ process = target.Launch (self.dbg.GetListener(), None, None, os.ctermid(), os.ctermid(), os.ctermid(), None, 0, False, rc)
- if not rc.Success() or not self.process:
+ if not rc.Success() or not process:
self.fail("SBTarget.LaunchProcess() failed")
import lldbutil
- for thread in self.process:
+ for thread in process:
if thread.GetStopReason() == lldb.eStopReasonBreakpoint:
for frame in thread:
# Dump the registers of this frame using lldbutil.get_GPRs() and friends.
diff --git a/lldb/test/python_api/lldbutil/process/TestPrintStackTraces.py b/lldb/test/python_api/lldbutil/process/TestPrintStackTraces.py
index 43bf1eb6c71..899507279ec 100644
--- a/lldb/test/python_api/lldbutil/process/TestPrintStackTraces.py
+++ b/lldb/test/python_api/lldbutil/process/TestPrintStackTraces.py
@@ -35,19 +35,19 @@ class ThreadsStackTracesTestCase(TestBase):
# Now launch the process, and do not stop at entry point.
rc = lldb.SBError()
- self.process = target.Launch (self.dbg.GetListener(), None, None, os.ctermid(), os.ctermid(), os.ctermid(), None, 0, False, rc)
+ process = target.Launch (self.dbg.GetListener(), None, None, os.ctermid(), os.ctermid(), os.ctermid(), None, 0, False, rc)
- if not rc.Success() or not self.process:
+ if not rc.Success() or not process:
self.fail("SBTarget.LaunchProcess() failed")
import lldbutil
- if self.process.GetState() != lldb.eStateStopped:
+ if process.GetState() != lldb.eStateStopped:
self.fail("Process should be in the 'stopped' state, "
"instead the actual state is: '%s'" %
- lldbutil.state_type_to_str(self.process.GetState()))
+ lldbutil.state_type_to_str(process.GetState()))
if self.TraceOn():
- lldbutil.print_stacktraces(self.process)
+ lldbutil.print_stacktraces(process)
if __name__ == '__main__':
OpenPOWER on IntegriCloud