Revert "[lldb] Move ScriptedProcess private state update to implementation"
This reverts commit 3c33d72e7f.
This commit is contained in:
1 parent
480eb74498
commit
20dbb29a1a
8 files changed
+58
-29
No files matched your search
@@ -80,8 +80,21 @@ Status ScriptedProcessPythonInterface::Launch() {
|
||||
}
|
||||
|
||||
Status ScriptedProcessPythonInterface::Resume() {
|
||||
// When calling ScriptedProcess.Resume from lldb we should always stop.
|
||||
return GetStatusFromMethod("resume", /*should_stop=*/true);
|
||||
return GetStatusFromMethod("resume");
|
||||
}
|
||||
|
||||
bool ScriptedProcessPythonInterface::ShouldStop() {
|
||||
Status error;
|
||||
StructuredData::ObjectSP obj = Dispatch("is_alive", error);
|
||||
|
||||
if (!CheckStructuredDataObject(LLVM_PRETTY_FUNCTION, obj, error))
|
||||
return {};
|
||||
|
||||
return obj->GetBooleanValue();
|
||||
}
|
||||
|
||||
Status ScriptedProcessPythonInterface::Stop() {
|
||||
return GetStatusFromMethod("stop");
|
||||
}
|
||||
|
||||
std::optional<MemoryRegionInfo>
|
||||
|
||||
Reference in new issue
Block a user