LLDB mainline
BreakpointResolverScripted.h
Go to the documentation of this file.
1//===-- BreakpointResolverScripted.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_BREAKPOINT_BREAKPOINTRESOLVERSCRIPTED_H
10#define LLDB_BREAKPOINT_BREAKPOINTRESOLVERSCRIPTED_H
11
16#include "lldb/lldb-forward.h"
17
18namespace lldb_private {
19
20/// \class BreakpointResolverScripted BreakpointResolverScripted.h
21/// "lldb/Breakpoint/BreakpointResolverScripted.h" This class sets breakpoints
22/// on a given Address. This breakpoint only takes once, and then it won't
23/// attempt to reset itself.
24
26public:
28 const llvm::StringRef class_name,
30 const StructuredDataImpl &args_data);
31
32 ~BreakpointResolverScripted() override = default;
33
36 Status &error);
37
39
41 SymbolContext &context,
42 Address *addr) override;
43
44 lldb::SearchDepth GetDepth() override;
45
46 void GetDescription(Stream *s) override;
47
48 void Dump(Stream *s) const override;
49
50 /// Methods for support type inquiry through isa, cast, and dyn_cast:
51 static inline bool classof(const BreakpointResolverScripted *) { return true; }
52 static inline bool classof(const BreakpointResolver *V) {
54 }
55
57 CopyForBreakpoint(lldb::BreakpointSP &breakpoint) override;
58
59protected:
60 void NotifyBreakpointSet() override;
61private:
64
65 std::string m_class_name;
70
74};
75
76} // namespace lldb_private
77
78#endif // LLDB_BREAKPOINT_BREAKPOINTRESOLVERSCRIPTED_H
static llvm::raw_ostream & error(Stream &strm)
A section + offset based address class.
Definition Address.h:62
BreakpointResolverScripted(const lldb::BreakpointSP &bkpt, const llvm::StringRef class_name, lldb::SearchDepth depth, const StructuredDataImpl &args_data)
lldb::BreakpointResolverSP CopyForBreakpoint(lldb::BreakpointSP &breakpoint) override
void GetDescription(Stream *s) override
Prints a canonical description for the breakpoint to the stream s.
StructuredData::ObjectSP SerializeToStructuredData() override
BreakpointResolverScripted(const BreakpointResolverScripted &)=delete
void Dump(Stream *s) const override
Standard "Dump" method. At present it does nothing.
Searcher::CallbackReturn SearchCallback(SearchFilter &filter, SymbolContext &context, Address *addr) override
void CreateImplementationIfNeeded(lldb::BreakpointSP bkpt)
const BreakpointResolverScripted & operator=(const BreakpointResolverScripted &)=delete
lldb::ScriptedBreakpointInterfaceSP m_interface_sp
static lldb::BreakpointResolverSP CreateFromStructuredData(const StructuredData::Dictionary &options_dict, Status &error)
~BreakpointResolverScripted() override=default
static bool classof(const BreakpointResolverScripted *)
Methods for support type inquiry through isa, cast, and dyn_cast:
static bool classof(const BreakpointResolver *V)
unsigned getResolverID() const
getResolverID - Return an ID for the concrete type of this object.
BreakpointResolver(const lldb::BreakpointSP &bkpt, unsigned char resolverType, lldb::addr_t offset=0, bool offset_is_insn_count=false)
The breakpoint resolver need to have a breakpoint for "ResolveBreakpoint to make sense.
General Outline: Provides the callback and search depth for the SearchFilter search.
An error handling class.
Definition Status.h:118
A stream class that can stream formatted output to a file.
Definition Stream.h:28
std::shared_ptr< Object > ObjectSP
Defines a symbol context baton that can be handed other debug core functions.
A class that represents a running process on the host machine.
std::shared_ptr< lldb_private::BreakpointResolver > BreakpointResolverSP
std::shared_ptr< lldb_private::Breakpoint > BreakpointSP
std::shared_ptr< lldb_private::ScriptedBreakpointInterface > ScriptedBreakpointInterfaceSP