summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test
diff options
context:
space:
mode:
authorGreg Clayton <clayborg@gmail.com>2019-05-09 20:39:34 +0000
committerGreg Clayton <clayborg@gmail.com>2019-05-09 20:39:34 +0000
commitdf225764b7d5d96ead8787bc7d1667160d8bbffe (patch)
treed93b3567970f804e30754abebce314b64794ee14 /lldb/packages/Python/lldbsuite/test
parentdee161fb3848a23e5de5393c916301a50ecae903 (diff)
downloadbcm5719-llvm-df225764b7d5d96ead8787bc7d1667160d8bbffe.tar.gz
bcm5719-llvm-df225764b7d5d96ead8787bc7d1667160d8bbffe.zip
Improve step over performance by not stopping at branches that are function calls and stepping into and them out of each one
Currently when we single step over a source line, we run and stop at every branch in the source line range. We can reduce the number of times we stop when stepping over by figuring out if any of these branches are function calls, and if so, ignore these branches. Since we are stepping over we can safely ignore these calls since they will return to the next instruction. Currently the step logic would stop at those branches (1st stop), single step into the branch (2nd stop), and then set a breakpoint at the return address (3rd stop), and then continue. Differential Revision: https://reviews.llvm.org/D58678 llvm-svn: 360375
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test')
-rw-r--r--lldb/packages/Python/lldbsuite/test/functionalities/breakpoint/require_hw_breakpoints/TestRequireHWBreakpoints.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/breakpoint/require_hw_breakpoints/TestRequireHWBreakpoints.py b/lldb/packages/Python/lldbsuite/test/functionalities/breakpoint/require_hw_breakpoints/TestRequireHWBreakpoints.py
index cda15fee84b..c0587946261 100644
--- a/lldb/packages/Python/lldbsuite/test/functionalities/breakpoint/require_hw_breakpoints/TestRequireHWBreakpoints.py
+++ b/lldb/packages/Python/lldbsuite/test/functionalities/breakpoint/require_hw_breakpoints/TestRequireHWBreakpoints.py
@@ -79,12 +79,11 @@ class BreakpointLocationsTestCase(TestBase):
self.runCmd("settings set target.require-hardware-breakpoint true")
# Step over doesn't fail immediately but fails later on.
- self.expect("thread step-over")
self.expect(
- "process status",
+ "thread step-over",
+ error=True,
substrs=[
- 'step over failed',
- 'Could not create hardware breakpoint for thread plan'
+ 'error: Could not create hardware breakpoint for thread plan.'
])
@skipIfWindows
OpenPOWER on IntegriCloud