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

Greg Clayton via lldb-commits lldb-commits at lists.llvm.org
Tue Jul 23 09:47:11 PDT 2024


================
@@ -158,7 +158,7 @@ class LLDB_API SBProcess {
 
   lldb::SBError Destroy();
 
-  lldb::SBError Continue();
+  lldb::SBError Continue(RunDirection direction = RunDirection::eRunForward);
----------------
clayborg wrote:

Our public API has rules:
- can't change any existing API call, you can add an overload, but you can't change any public APIs that are already there. Anything in the `lldb` namespace can't be changed. 
- no virtual functions
- can't change any ivars or the size of the object

That being said, I would rather have a:
```
lldb::SBError ReverseContinue();
```
call than have everyone using the `Continue` API to say wether they want to go forward or in reverse. 

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


More information about the lldb-commits mailing list