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

via lldb-commits lldb-commits at lists.llvm.org
Tue Dec 10 17:29:26 PST 2024


================
@@ -182,10 +182,16 @@ void ScriptedProcess::DidResume() {
   m_pid = GetInterface().GetProcessID();
 }
 
-Status ScriptedProcess::DoResume() {
+Status ScriptedProcess::DoResume(RunDirection direction) {
   LLDB_LOGF(GetLog(LLDBLog::Process), "ScriptedProcess::%s resuming process", __FUNCTION__);
 
-  return GetInterface().Resume();
+  if (direction == RunDirection::eRunForward) {
+    return GetInterface().Resume();
+  } else {
+    return Status::FromErrorStringWithFormatv(
----------------
jimingham wrote:

I don't expect you to support this, but can you put a 

// FIXME: Pipe reverse continue through Scripted Processes

here.  There's no reason why scripted processes couldn't support reverse continue.

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


More information about the lldb-commits mailing list