[Lldb-commits] [lldb] [lldb] Implement CLI support for reverse-continue (PR #132783)

Adrian Vogelsgesang via lldb-commits lldb-commits at lists.llvm.org
Sat Mar 29 16:12:40 PDT 2025


================
@@ -468,7 +468,23 @@ class CommandObjectProcessContinue : public CommandObjectParsed {
       case 'b':
         m_run_to_bkpt_args.AppendArgument(option_arg);
         m_any_bkpts_specified = true;
-      break;
+        break;
+      case 'F':
+        if (m_base_direction == lldb::RunDirection::eRunReverse) {
+          error = Status::FromErrorString(
+              "cannot specify both 'forward' and 'reverse'");
+          break;
+        }
+        m_base_direction = lldb::RunDirection::eRunForward;
+        break;
+      case 'R':
+        if (m_base_direction == lldb::RunDirection::eRunForward) {
+          error = Status::FromErrorString(
+              "cannot specify both 'forward' and 'reverse'");
----------------
vogelsgesang wrote:

We might want to add a test case for this error condition?

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


More information about the lldb-commits mailing list