1 //===-- BreakpointResolverFileLine.h ----------------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #ifndef liblldb_BreakpointResolverFileLine_h_
11 #define liblldb_BreakpointResolverFileLine_h_
15 // Other libraries and framework includes
17 #include "lldb/Breakpoint/BreakpointResolver.h"
19 namespace lldb_private {
21 //----------------------------------------------------------------------
22 /// @class BreakpointResolverFileLine BreakpointResolverFileLine.h "lldb/Breakpoint/BreakpointResolverFileLine.h"
23 /// @brief This class sets breakpoints by file and line. Optionally, it will look for inlined
24 /// instances of the file and line specification.
25 //----------------------------------------------------------------------
27 class BreakpointResolverFileLine :
28 public BreakpointResolver
31 BreakpointResolverFileLine (Breakpoint *bkpt,
32 const FileSpec &resolver,
39 ~BreakpointResolverFileLine ();
41 Searcher::CallbackReturn
42 SearchCallback (SearchFilter &filter,
43 SymbolContext &context,
45 bool containing) override;
51 GetDescription (Stream *s) override;
54 Dump (Stream *s) const override;
56 /// Methods for support type inquiry through isa, cast, and dyn_cast:
57 static inline bool classof(const BreakpointResolverFileLine *) { return true; }
58 static inline bool classof(const BreakpointResolver *V) {
59 return V->getResolverID() == BreakpointResolver::FileLineResolver;
62 lldb::BreakpointResolverSP
63 CopyForBreakpoint (Breakpoint &breakpoint) override;
66 friend class Breakpoint;
67 FileSpec m_file_spec; // This is the file spec we are looking for.
68 uint32_t m_line_number; // This is the line number that we are looking for.
69 bool m_inlines; // This determines whether the resolver looks for inlined functions or not.
74 DISALLOW_COPY_AND_ASSIGN(BreakpointResolverFileLine);
77 } // namespace lldb_private
79 #endif // liblldb_BreakpointResolverFileLine_h_