Improve step over performance by not stopping at branches that are function calls...
authorGreg Clayton <clayborg@gmail.com>
Thu, 9 May 2019 20:39:34 +0000 (20:39 +0000)
committerGreg Clayton <clayborg@gmail.com>
Thu, 9 May 2019 20:39:34 +0000 (20:39 +0000)
commitdf225764b7d5d96ead8787bc7d1667160d8bbffe
treed93b3567970f804e30754abebce314b64794ee14
parentdee161fb3848a23e5de5393c916301a50ecae903
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
lldb/include/lldb/Core/Disassembler.h
lldb/packages/Python/lldbsuite/test/functionalities/breakpoint/require_hw_breakpoints/TestRequireHWBreakpoints.py
lldb/source/Core/Disassembler.cpp
lldb/source/Target/Process.cpp
lldb/source/Target/ThreadPlanStepRange.cpp