LLDB mainline
ScriptedThreadPlanInterface.h
Go to the documentation of this file.
1//===-- ScriptedThreadPlanInterface.h ---------------------------*- C++ -*-===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8
9#ifndef LLDB_INTERPRETER_INTERFACES_SCRIPTEDTHREADPLANINTERFACE_H
10#define LLDB_INTERPRETER_INTERFACES_SCRIPTEDTHREADPLANINTERFACE_H
11
12#include "lldb/lldb-private.h"
13
14#include "ScriptedInterface.h"
15
16namespace lldb_private {
18public:
19 virtual llvm::Expected<StructuredData::GenericSP>
20 CreatePluginObject(llvm::StringRef class_name,
21 lldb::ThreadPlanSP thread_plan_sp,
22 const StructuredDataImpl &args_sp) = 0;
23
24 virtual llvm::Expected<bool> ExplainsStop(Event *event) { return true; }
25
26 virtual llvm::Expected<bool> ShouldStop(Event *event) { return true; }
27
28 virtual llvm::Expected<bool> IsStale() { return true; };
29
31
32 virtual llvm::Error GetStopDescription(lldb::StreamSP &stream) {
33 return llvm::Error::success();
34 }
35};
36} // namespace lldb_private
37
38#endif // LLDB_INTERPRETER_INTERFACES_SCRIPTEDTHREADPLANINTERFACE_H
virtual llvm::Expected< bool > ExplainsStop(Event *event)
virtual llvm::Expected< bool > ShouldStop(Event *event)
virtual llvm::Error GetStopDescription(lldb::StreamSP &stream)
virtual llvm::Expected< StructuredData::GenericSP > CreatePluginObject(llvm::StringRef class_name, lldb::ThreadPlanSP thread_plan_sp, const StructuredDataImpl &args_sp)=0
A class that represents a running process on the host machine.
std::shared_ptr< lldb_private::ThreadPlan > ThreadPlanSP
Definition: lldb-forward.h:449
StateType
Process and Thread States.
@ eStateStepping
Process or thread is in the process of stepping and can not be examined.
std::shared_ptr< lldb_private::Stream > StreamSP
Definition: lldb-forward.h:428