LLDB
mainline
llvm-project
lldb
include
lldb
Interpreter
Interfaces
ScriptedStopHookInterface.h
Go to the documentation of this file.
1
//===-- ScriptedStopHookInterface.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_SCRIPTEDSTOPHOOKINTERFACE_H
10
#define LLDB_INTERPRETER_INTERFACES_SCRIPTEDSTOPHOOKINTERFACE_H
11
12
#include "
lldb/lldb-private.h
"
13
14
#include "
ScriptedInterface.h
"
15
16
namespace
lldb_private
{
17
class
ScriptedStopHookInterface
:
public
ScriptedInterface
{
18
public
:
19
virtual
llvm::Expected<StructuredData::GenericSP>
20
CreatePluginObject
(llvm::StringRef class_name,
lldb::TargetSP
target_sp,
21
const
StructuredDataImpl
&args_sp) = 0;
22
23
/// "handle_stop" will return a bool with the meaning "should_stop"...
24
/// If nothing is returned, we'll assume we are going to stop.
25
/// Also any errors should return true, since we should stop on error.
26
virtual
llvm::Expected<bool>
HandleStop
(
ExecutionContext
&exe_ctx,
27
lldb::StreamSP
&output_sp) {
28
return
true
;
29
}
30
};
31
}
// namespace lldb_private
32
33
#endif
// LLDB_INTERPRETER_INTERFACES_SCRIPTEDSTOPHOOKINTERFACE_H
ScriptedInterface.h
lldb_private::ExecutionContext
"lldb/Target/ExecutionContext.h" A class that contains an execution context.
Definition:
ExecutionContext.h:292
lldb_private::ScriptedInterface
Definition:
ScriptedInterface.h:25
lldb_private::ScriptedStopHookInterface
Definition:
ScriptedStopHookInterface.h:17
lldb_private::ScriptedStopHookInterface::HandleStop
virtual llvm::Expected< bool > HandleStop(ExecutionContext &exe_ctx, lldb::StreamSP &output_sp)
"handle_stop" will return a bool with the meaning "should_stop"... If nothing is returned,...
Definition:
ScriptedStopHookInterface.h:26
lldb_private::ScriptedStopHookInterface::CreatePluginObject
virtual llvm::Expected< StructuredData::GenericSP > CreatePluginObject(llvm::StringRef class_name, lldb::TargetSP target_sp, const StructuredDataImpl &args_sp)=0
lldb_private::StructuredDataImpl
Definition:
StructuredDataImpl.h:26
lldb-private.h
lldb_private
A class that represents a running process on the host machine.
Definition:
SBAddressRange.h:14
lldb::StreamSP
std::shared_ptr< lldb_private::Stream > StreamSP
Definition:
lldb-forward.h:432
lldb::TargetSP
std::shared_ptr< lldb_private::Target > TargetSP
Definition:
lldb-forward.h:448
Generated on Sat Dec 21 2024 14:48:17 for LLDB by
1.9.6