[Lldb-commits] [lldb] [lldb] Implement basic support for reverse-continue (PR #99736)

via lldb-commits lldb-commits at lists.llvm.org
Mon Jul 22 13:50:57 PDT 2024


================
@@ -3264,6 +3266,11 @@ Status Process::PrivateResume() {
   // filters before resuming.
   UpdateAutomaticSignalFiltering();
 
+  if (m_last_run_direction != direction) {
----------------
jimingham wrote:

It might be hard, but it would be nice if this wasn't necessary.  For instance, I do a forward-next over a function and hit a breakpoint.  In lldb at present, I can do a couple of steps around where I hit the breakpoint, then I can just "continue" to conclude the forward-next.  But with this change, if I hit the breakpoint, forward step, decide I stepped too far, backwards step, find what I wanted, and then do "continue" now I get an actual continue, we've forgotten about the forward-next.

https://github.com/llvm/llvm-project/pull/99736


More information about the lldb-commits mailing list