Skip to content

Commit

Permalink
Make sure LldbGdbServerTestCase is built in arm mode to avoid failure…
Browse files Browse the repository at this point in the history
…s due thumb instructions

Differential revision: https://reviews.llvm.org/D23395

llvm-svn: 278326
  • Loading branch information
omjavaid committed Aug 11, 2016
1 parent 4dbab21 commit 3add5ec
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
@@ -1,6 +1,6 @@
LEVEL = ../../make

CFLAGS_EXTRAS += -D__STDC_LIMIT_MACROS -D__STDC_FORMAT_MACROS
override CFLAGS_EXTRAS += -D__STDC_LIMIT_MACROS -D__STDC_FORMAT_MACROS
ENABLE_THREADS := YES
CXX_SOURCES := main.cpp
MAKE_DSYM :=NO
Expand Down
Expand Up @@ -1233,15 +1233,23 @@ def software_breakpoint_set_and_remove_work(self):
@debugserver_test
def test_software_breakpoint_set_and_remove_work_debugserver(self):
self.init_debugserver_test()
self.build()
if self.getArchitecture() == "arm":
# TODO: Handle case when setting breakpoint in thumb code
self.build(dictionary={'CFLAGS_EXTRAS': '-marm'})
else:
self.build()
self.set_inferior_startup_launch()
self.software_breakpoint_set_and_remove_work()

@llgs_test
@expectedFlakeyLinux("llvm.org/pr25652")
def test_software_breakpoint_set_and_remove_work_llgs(self):
self.init_llgs_test()
self.build()
if self.getArchitecture() == "arm":
# TODO: Handle case when setting breakpoint in thumb code
self.build(dictionary={'CFLAGS_EXTRAS': '-marm'})
else:
self.build()
self.set_inferior_startup_launch()
self.software_breakpoint_set_and_remove_work()

Expand Down

0 comments on commit 3add5ec

Please sign in to comment.