diff options
author | Pavel Labath <pavel@labath.sk> | 2025-03-17 16:06:25 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-17 16:06:25 +0100 |
commit | 1b237198dc9d308c6d589e01637ec7496b48b3e0 (patch) | |
tree | a843c0d0cbde337e75fbabd9f1acfc8f6dad061e /lldb/source/Plugins/Process/scripted/ScriptedProcess.cpp | |
parent | 83356f3b62e95b980ca48083aafa4a1b4040d4c9 (diff) | |
download | llvm-1b237198dc9d308c6d589e01637ec7496b48b3e0.zip llvm-1b237198dc9d308c6d589e01637ec7496b48b3e0.tar.gz llvm-1b237198dc9d308c6d589e01637ec7496b48b3e0.tar.bz2 |
Reapply "[lldb] Implement basic support for reverse-continue (#125242)" (again) (#128156)
This reverts commit
https://github.com/llvm/llvm-project/commit/87b7f63a117c340a6d9ca47959335fd7ef6c7ad2,
reapplying
https://github.com/llvm/llvm-project/commit/7e66cf74fb4e6a103f923e34700a7b6f20ac2a9b
with a small (and probably temporary)
change to generate more debug info to help with diagnosing buildbot
issues.
Diffstat (limited to 'lldb/source/Plugins/Process/scripted/ScriptedProcess.cpp')
-rw-r--r-- | lldb/source/Plugins/Process/scripted/ScriptedProcess.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lldb/source/Plugins/Process/scripted/ScriptedProcess.cpp b/lldb/source/Plugins/Process/scripted/ScriptedProcess.cpp index 6b371a1..bcb9ff2 100644 --- a/lldb/source/Plugins/Process/scripted/ScriptedProcess.cpp +++ b/lldb/source/Plugins/Process/scripted/ScriptedProcess.cpp @@ -184,10 +184,15 @@ 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(); + // FIXME: Pipe reverse continue through Scripted Processes + return Status::FromErrorStringWithFormatv( + "error: {0} does not support reverse execution of processes", + GetPluginName()); } Status ScriptedProcess::DoAttach(const ProcessAttachInfo &attach_info) { |