LLDB
mainline
llvm-project
lldb
include
lldb
Interpreter
Interfaces
ScriptedBreakpointInterface.h
Go to the documentation of this file.
1
//===----------------------------------------------------------------------===//
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_SCRIPTEDBREAKPOINTINTERFACE_H
10
#define LLDB_INTERPRETER_INTERFACES_SCRIPTEDBREAKPOINTINTERFACE_H
11
12
#include "
ScriptedInterface.h
"
13
#include "
lldb/Symbol/SymbolContext.h
"
14
#include "
lldb/lldb-private.h
"
15
16
namespace
lldb_private
{
17
class
ScriptedBreakpointInterface
:
public
ScriptedInterface
{
18
public
:
19
virtual
llvm::Expected<StructuredData::GenericSP>
20
CreatePluginObject
(llvm::StringRef class_name,
lldb::BreakpointSP
break_sp,
21
const
StructuredDataImpl
&args_sp) = 0;
22
23
/// "ResolverCallback" will get called when a new module is loaded. The
24
/// new module information is passed in sym_ctx. The Resolver will add
25
/// any breakpoint locations it found in that module.
26
virtual
bool
ResolverCallback
(
SymbolContext
sym_ctx) {
return
true
; }
27
virtual
lldb::SearchDepth
GetDepth
() {
return
lldb::eSearchDepthModule
; }
28
virtual
std::optional<std::string>
GetShortHelp
() {
return
nullptr
; }
29
};
30
}
// namespace lldb_private
31
32
#endif
// LLDB_INTERPRETER_INTERFACES_SCRIPTEDSTOPHOOKINTERFACE_H
ScriptedInterface.h
SymbolContext.h
lldb_private::ScriptedBreakpointInterface
Definition:
ScriptedBreakpointInterface.h:17
lldb_private::ScriptedBreakpointInterface::ResolverCallback
virtual bool ResolverCallback(SymbolContext sym_ctx)
"ResolverCallback" will get called when a new module is loaded.
Definition:
ScriptedBreakpointInterface.h:26
lldb_private::ScriptedBreakpointInterface::GetDepth
virtual lldb::SearchDepth GetDepth()
Definition:
ScriptedBreakpointInterface.h:27
lldb_private::ScriptedBreakpointInterface::CreatePluginObject
virtual llvm::Expected< StructuredData::GenericSP > CreatePluginObject(llvm::StringRef class_name, lldb::BreakpointSP break_sp, const StructuredDataImpl &args_sp)=0
lldb_private::ScriptedBreakpointInterface::GetShortHelp
virtual std::optional< std::string > GetShortHelp()
Definition:
ScriptedBreakpointInterface.h:28
lldb_private::ScriptedInterface
Definition:
ScriptedInterface.h:25
lldb_private::StructuredDataImpl
Definition:
StructuredDataImpl.h:26
lldb_private::SymbolContext
Defines a symbol context baton that can be handed other debug core functions.
Definition:
SymbolContext.h:34
lldb-private.h
lldb_private
A class that represents a running process on the host machine.
Definition:
SBAddressRange.h:14
lldb::BreakpointSP
std::shared_ptr< lldb_private::Breakpoint > BreakpointSP
Definition:
lldb-forward.h:324
lldb::SearchDepth
SearchDepth
Definition:
lldb-enumerations.h:295
lldb::eSearchDepthModule
@ eSearchDepthModule
Definition:
lldb-enumerations.h:298
Generated on Wed Sep 3 2025 19:37:01 for LLDB by
1.9.6