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(const ScriptedMetadata &scripted_metadata,
21 lldb::ThreadPlanSP thread_plan_sp) = 0;
22
23 virtual llvm::Expected<bool> ExplainsStop(Event *event) { return true; }
24
25 virtual llvm::Expected<bool> ShouldStop(Event *event) { return true; }
26
27 virtual llvm::Expected<bool> IsStale() { return true; };
28
30
31 virtual llvm::Error GetStopDescription(lldb::StreamSP &stream) {
32 return llvm::Error::success();
33 }
34};
35} // namespace lldb_private
36
37#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(const ScriptedMetadata &scripted_metadata, lldb::ThreadPlanSP thread_plan_sp)=0
A class that represents a running process on the host machine.
std::shared_ptr< lldb_private::ThreadPlan > ThreadPlanSP
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