1 //===-- BreakpointResolver.cpp ----------------------------------*- C++ -*-===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 
10 #include "lldb/Breakpoint/BreakpointResolver.h"
11 
12 // C Includes
13 // C++ Includes
14 // Other libraries and framework includes
15 // Project includes
16 #include "lldb/Core/Address.h"
17 #include "lldb/Breakpoint/Breakpoint.h"
18 #include "lldb/Breakpoint/BreakpointLocation.h"
19 #include "lldb/Core/Log.h"
20 #include "lldb/Core/ModuleList.h"
21 #include "lldb/Core/SearchFilter.h"
22 #include "lldb/Core/Stream.h"
23 #include "lldb/Core/StreamString.h"
24 #include "lldb/Symbol/SymbolContext.h"
25 #include "lldb/Target/Target.h"
26 #include "lldb/lldb-private-log.h"
27 
28 using namespace lldb_private;
29 
30 //----------------------------------------------------------------------
31 // BreakpointResolver:
32 //----------------------------------------------------------------------
BreakpointResolver(Breakpoint * bkpt,const unsigned char resolverTy)33 BreakpointResolver::BreakpointResolver (Breakpoint *bkpt, const unsigned char resolverTy) :
34     m_breakpoint (bkpt),
35     SubclassID (resolverTy)
36 {
37 }
38 
~BreakpointResolver()39 BreakpointResolver::~BreakpointResolver ()
40 {
41 
42 }
43 
44 void
SetBreakpoint(Breakpoint * bkpt)45 BreakpointResolver::SetBreakpoint (Breakpoint *bkpt)
46 {
47     m_breakpoint = bkpt;
48 }
49 
50 void
ResolveBreakpointInModules(SearchFilter & filter,ModuleList & modules)51 BreakpointResolver::ResolveBreakpointInModules (SearchFilter &filter, ModuleList &modules)
52 {
53     filter.SearchInModuleList(*this, modules);
54 }
55 
56 void
ResolveBreakpoint(SearchFilter & filter)57 BreakpointResolver::ResolveBreakpoint (SearchFilter &filter)
58 {
59     filter.Search (*this);
60 }
61 
62