LLDB mainline
BreakpointResolverAddress.h
Go to the documentation of this file.
1//===-- BreakpointResolverAddress.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_BREAKPOINTRESOLVERADDRESS_H
10#define LLDB_BREAKPOINT_BREAKPOINTRESOLVERADDRESS_H
11
14
15namespace lldb_private {
16
17/// \class BreakpointResolverAddress BreakpointResolverAddress.h
18/// "lldb/Breakpoint/BreakpointResolverAddress.h" This class sets breakpoints
19/// on a given Address. This breakpoint only takes once, and then it won't
20/// attempt to reset itself.
21
23public:
25 const Address &addr);
26
28 const Address &addr,
29 const FileSpec &module_spec);
30
31 ~BreakpointResolverAddress() override = default;
32
35 Status &error);
36
38
39 void ResolveBreakpoint(SearchFilter &filter) override;
40
42 ModuleList &modules) override;
43
45 SymbolContext &context,
46 Address *addr) override;
47
48 lldb::SearchDepth GetDepth() override;
49
50 void GetDescription(Stream *s) override;
51
52 void Dump(Stream *s) const override;
53
54 /// Methods for support type inquiry through isa, cast, and dyn_cast:
55 static inline bool classof(const BreakpointResolverAddress *) { return true; }
56 static inline bool classof(const BreakpointResolver *V) {
58 }
59
61 CopyForBreakpoint(lldb::BreakpointSP &breakpoint) override;
62
63protected:
64 Address m_addr; // The address - may be Section Offset or
65 // may be just an offset
66 lldb::addr_t m_resolved_addr; // The current value of the resolved load
67 // address for this breakpoint,
68 FileSpec m_module_filespec; // If this filespec is Valid, and m_addr is an
69 // offset, then it will be converted
70 // to a Section+Offset address in this module, whenever that module gets
71 // around to being loaded.
72private:
76};
77
78} // namespace lldb_private
79
80#endif // LLDB_BREAKPOINT_BREAKPOINTRESOLVERADDRESS_H
static llvm::raw_ostream & error(Stream &strm)
A section + offset based address class.
Definition: Address.h:62
"lldb/Breakpoint/BreakpointResolverAddress.h" This class sets breakpoints on a given Address.
StructuredData::ObjectSP SerializeToStructuredData() override
Searcher::CallbackReturn SearchCallback(SearchFilter &filter, SymbolContext &context, Address *addr) override
~BreakpointResolverAddress() override=default
BreakpointResolverAddress(const BreakpointResolverAddress &)=delete
void GetDescription(Stream *s) override
Prints a canonical description for the breakpoint to the stream s.
static bool classof(const BreakpointResolverAddress *)
Methods for support type inquiry through isa, cast, and dyn_cast:
static lldb::BreakpointResolverSP CreateFromStructuredData(const StructuredData::Dictionary &options_dict, Status &error)
lldb::BreakpointResolverSP CopyForBreakpoint(lldb::BreakpointSP &breakpoint) override
void ResolveBreakpointInModules(SearchFilter &filter, ModuleList &modules) override
In response to this method the resolver scans the modules in the module list modules,...
void ResolveBreakpoint(SearchFilter &filter) override
In response to this method the resolver scans all the modules in the breakpoint's target,...
static bool classof(const BreakpointResolver *V)
void Dump(Stream *s) const override
Standard "Dump" method. At present it does nothing.
const BreakpointResolverAddress & operator=(const BreakpointResolverAddress &)=delete
General Outline: The BreakpointResolver is a Searcher.
unsigned getResolverID() const
getResolverID - Return an ID for the concrete type of this object.
A file utility class.
Definition: FileSpec.h:56
A collection class for Module objects.
Definition: ModuleList.h:103
General Outline: Provides the callback and search depth for the SearchFilter search.
Definition: SearchFilter.h:83
An error handling class.
Definition: Status.h:44
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.
Definition: SymbolContext.h:34
A class that represents a running process on the host machine.
std::shared_ptr< lldb_private::BreakpointResolver > BreakpointResolverSP
Definition: lldb-forward.h:326
std::shared_ptr< lldb_private::Breakpoint > BreakpointSP
Definition: lldb-forward.h:319
uint64_t addr_t
Definition: lldb-types.h:80