2015-10-23 17:04:29 +00:00
|
|
|
from __future__ import print_function
|
|
|
|
|
2015-10-27 20:12:05 +00:00
|
|
|
import use_lldb_suite
|
2014-06-27 22:11:56 +00:00
|
|
|
|
|
|
|
import gdbremote_testcase
|
2015-11-03 02:06:18 +00:00
|
|
|
from lldbsuite.test.lldbtest import *
|
2014-06-27 22:11:56 +00:00
|
|
|
|
|
|
|
class TestGdbRemoteSingleStep(gdbremote_testcase.GdbRemoteTestCaseBase):
|
|
|
|
|
2015-05-21 18:54:12 +00:00
|
|
|
mydir = TestBase.compute_mydir(__file__)
|
|
|
|
|
2014-06-27 22:11:56 +00:00
|
|
|
@debugserver_test
|
2015-09-30 10:12:40 +00:00
|
|
|
def test_single_step_only_steps_one_instruction_with_s_debugserver(self):
|
2014-06-27 22:11:56 +00:00
|
|
|
self.init_debugserver_test()
|
2015-09-30 10:12:40 +00:00
|
|
|
self.build()
|
2014-06-27 22:11:56 +00:00
|
|
|
self.set_inferior_startup_launch()
|
|
|
|
self.single_step_only_steps_one_instruction(use_Hc_packet=True, step_instruction="s")
|
|
|
|
|
|
|
|
@llgs_test
|
2015-09-07 16:01:26 +00:00
|
|
|
@expectedFailureAndroid(bugnumber="llvm.com/pr24739", archs=["arm", "aarch64"])
|
2015-09-30 10:12:40 +00:00
|
|
|
def test_single_step_only_steps_one_instruction_with_s_llgs(self):
|
2014-06-27 22:11:56 +00:00
|
|
|
self.init_llgs_test()
|
2015-09-30 10:12:40 +00:00
|
|
|
self.build()
|
2014-06-27 22:11:56 +00:00
|
|
|
self.set_inferior_startup_launch()
|
|
|
|
self.single_step_only_steps_one_instruction(use_Hc_packet=True, step_instruction="s")
|