From 64dab75c418ddde2ac7a36e9355c2ef425dc86b3 Mon Sep 17 00:00:00 2001 From: Sagar Thakur Date: Wed, 18 Nov 2015 08:18:03 +0000 Subject: [LLDB][MIPS] Fix TestDisassembleBreakpoint.py for MIPS Patch by Nitesh Jain Summary: The break is opcode for breakpoint instruction. Subscribers: lldb-commits, mohit.bhakkad, sagar, bhushan Reviewers: clayborg, ovyalov, jaydeep Differential: http://reviews.llvm.org/D14634 llvm-svn: 253445 --- .../test/functionalities/disassembly/TestDisassembleBreakpoint.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'lldb/packages/Python/lldbsuite/test/functionalities') diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/disassembly/TestDisassembleBreakpoint.py b/lldb/packages/Python/lldbsuite/test/functionalities/disassembly/TestDisassembleBreakpoint.py index 68b8416add3..df2308de760 100644 --- a/lldb/packages/Python/lldbsuite/test/functionalities/disassembly/TestDisassembleBreakpoint.py +++ b/lldb/packages/Python/lldbsuite/test/functionalities/disassembly/TestDisassembleBreakpoint.py @@ -32,12 +32,16 @@ class DisassemblyTestCase(TestBase): disassembly = self.res.GetOutput() # ARCH, if not specified, defaults to x86_64. - if self.getArchitecture() in ["", 'x86_64', 'i386', 'i686']: + arch = self.getArchitecture() + if arch in ["", 'x86_64', 'i386', 'i686']: breakpoint_opcodes = ["int3"] instructions = [' mov', ' addl ', 'ret'] - elif self.getArchitecture() in ["arm", "aarch64"]: + elif arch in ["arm", "aarch64"]: breakpoint_opcodes = ["brk", "udf"] instructions = [' add ', ' ldr ', ' str '] + elif re.match("mips" , arch): + breakpoint_opcodes = ["break"] + instructions = ['lw', 'sw', 'jr'] else: # TODO please add your arch here self.fail('unimplemented for arch = "{arch}"'.format(arch=self.getArchitecture())) -- cgit v1.2.3