summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/functionalities/breakpoint/breakpoint_conditions
diff options
context:
space:
mode:
authorSagar Thakur <sagar.thakur@imgtec.com>2015-11-18 08:12:34 +0000
committerSagar Thakur <sagar.thakur@imgtec.com>2015-11-18 08:12:34 +0000
commit78086742f3b980d2ffb0f6e3caf08bc7d1cce2d5 (patch)
treecbdc53b808f496e1de56b9989c39d58b76fa542a /lldb/packages/Python/lldbsuite/test/functionalities/breakpoint/breakpoint_conditions
parent78409019d9bb2b5d6a62504fe87bae8da779f61c (diff)
downloadbcm5719-llvm-78086742f3b980d2ffb0f6e3caf08bc7d1cce2d5.tar.gz
bcm5719-llvm-78086742f3b980d2ffb0f6e3caf08bc7d1cce2d5.zip
[MIPS][LLDB]Fix TestBreakpointCondition.py for MIPS
Patch by Nitesh Jain Summary: The self.getArchitecture() returns the architecture based on the value of -A flag passed to dotest.py script. There are many possible values for MIPS to this option (like mips32r2, mips32r6, mips64, mips64r2,.... ). This patch uses re.match(mips,arch) to check if architecture string starts with mips. Subscribers: lldb-commits, mohit.bhakkad, sagar, bhushan, jaydeep Reviewers: clayborg, ovyalov Differential: http://reviews.llvm.org/D14493 llvm-svn: 253444
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/functionalities/breakpoint/breakpoint_conditions')
-rw-r--r--lldb/packages/Python/lldbsuite/test/functionalities/breakpoint/breakpoint_conditions/TestBreakpointConditions.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/breakpoint/breakpoint_conditions/TestBreakpointConditions.py b/lldb/packages/Python/lldbsuite/test/functionalities/breakpoint/breakpoint_conditions/TestBreakpointConditions.py
index e72a77d9875..8c22c8fe869 100644
--- a/lldb/packages/Python/lldbsuite/test/functionalities/breakpoint/breakpoint_conditions/TestBreakpointConditions.py
+++ b/lldb/packages/Python/lldbsuite/test/functionalities/breakpoint/breakpoint_conditions/TestBreakpointConditions.py
@@ -103,12 +103,15 @@ class BreakpointConditionsTestCase(TestBase):
self.runCmd("breakpoint disable")
self.runCmd("breakpoint set -p Loop")
- if self.getArchitecture() in ['x86_64', 'i386']:
+ arch = self.getArchitecture()
+ if arch in ['x86_64', 'i386']:
self.runCmd("breakpoint modify -c ($eax&&i)")
- elif self.getArchitecture() in ['aarch64']:
+ elif arch in ['aarch64']:
self.runCmd("breakpoint modify -c ($x1&&i)")
- elif self.getArchitecture() in ['arm']:
+ elif arch in ['arm']:
self.runCmd("breakpoint modify -c ($r0&&i)")
+ elif re.match("mips",arch):
+ self.runCmd("breakpoint modify -c ($r2&&i)")
self.runCmd("run")
self.expect("process status", PROCESS_STOPPED,
OpenPOWER on IntegriCloud