[Lldb-commits] [PATCH] D76216: Improve step over performance

Jaroslav Sevcik via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Mon Mar 16 01:54:00 PDT 2020


jarin marked an inline comment as done.
jarin added inline comments.


================
Comment at: lldb/source/Target/ThreadPlanStepOverRange.cpp:176
+        // rely on that breakpoint to trigger once we return to the range.
+        if (m_next_branch_bp_sp)
+          return false;
----------------
We could do some more sanity checking here. 

For example, we could ensure that the return address is still before the next branch breakpoint, or, ideally, record the beginning of the next-branch range and check the return address is in that range. However, I am not quite sure what this would protect us against (mucking with the stack, perhaps?) and what to do if the check fail - falling back to the old behavior does not really seem to solve anything because that introduces even more noise by pushing all the step-out plans.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D76216/new/

https://reviews.llvm.org/D76216





More information about the lldb-commits mailing list