2015-10-23 17:04:29 +00:00
|
|
|
from __future__ import print_function
|
|
|
|
|
2015-11-03 19:20:39 +00:00
|
|
|
|
2014-06-27 22:11:56 +00:00
|
|
|
import gdbremote_testcase
|
2016-02-04 23:04:17 +00:00
|
|
|
from lldbsuite.test.decorators import *
|
2015-11-03 02:06:18 +00:00
|
|
|
from lldbsuite.test.lldbtest import *
|
2016-02-04 23:04:17 +00:00
|
|
|
from lldbsuite.test import lldbutil
|
2014-06-27 22:11:56 +00:00
|
|
|
|
2016-09-06 20:57:50 +00:00
|
|
|
|
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()
|
2016-09-06 20:57:50 +00:00
|
|
|
self.single_step_only_steps_one_instruction(
|
|
|
|
use_Hc_packet=True, step_instruction="s")
|
2014-06-27 22:11:56 +00:00
|
|
|
|
|
|
|
@llgs_test
|
2016-09-06 20:57:50 +00:00
|
|
|
@expectedFailureAndroid(
|
|
|
|
bugnumber="llvm.org/pr24739",
|
|
|
|
archs=[
|
|
|
|
"arm",
|
|
|
|
"aarch64"])
|
|
|
|
@expectedFailureAll(
|
|
|
|
oslist=["linux"],
|
|
|
|
archs=[
|
|
|
|
"arm",
|
|
|
|
"aarch64"],
|
|
|
|
bugnumber="llvm.org/pr24739")
|
2017-06-14 12:21:26 +00:00
|
|
|
@skipIf(triple='^mips')
|
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()
|
2016-09-06 20:57:50 +00:00
|
|
|
self.single_step_only_steps_one_instruction(
|
|
|
|
use_Hc_packet=True, step_instruction="s")
|