[Lldb-commits] [PATCH] D58678: Improve step over performance by not stopping at branches that are function calls and stepping into and them out of each one

Greg Clayton via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Tue Feb 26 08:34:08 PST 2019


clayborg created this revision.
clayborg added a reviewer: jingham.
Herald added a reviewer: serge-sans-paille.
Herald added a project: LLDB.

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.


Repository:
  rLLDB LLDB

https://reviews.llvm.org/D58678

Files:
  include/lldb/Core/Disassembler.h
  packages/Python/lldbsuite/test/functionalities/breakpoint/require_hw_breakpoints/TestRequireHWBreakpoints.py
  source/Core/Disassembler.cpp
  source/Target/Process.cpp
  source/Target/ThreadPlanStepRange.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D58678.188384.patch
Type: text/x-patch
Size: 4629 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20190226/d6d8487f/attachment.bin>


More information about the lldb-commits mailing list