1254721Semaste//===-- BreakpointResolver.cpp ----------------------------------*- C++ -*-===// 2254721Semaste// 3254721Semaste// The LLVM Compiler Infrastructure 4254721Semaste// 5254721Semaste// This file is distributed under the University of Illinois Open Source 6254721Semaste// License. See LICENSE.TXT for details. 7254721Semaste// 8254721Semaste//===----------------------------------------------------------------------===// 9254721Semaste 10254721Semaste#include "lldb/Breakpoint/BreakpointResolver.h" 11254721Semaste 12254721Semaste// C Includes 13254721Semaste// C++ Includes 14254721Semaste// Other libraries and framework includes 15254721Semaste// Project includes 16254721Semaste#include "lldb/Core/Address.h" 17254721Semaste#include "lldb/Breakpoint/Breakpoint.h" 18254721Semaste#include "lldb/Breakpoint/BreakpointLocation.h" 19254721Semaste#include "lldb/Core/Log.h" 20254721Semaste#include "lldb/Core/ModuleList.h" 21254721Semaste#include "lldb/Core/SearchFilter.h" 22254721Semaste#include "lldb/Core/Stream.h" 23254721Semaste#include "lldb/Core/StreamString.h" 24254721Semaste#include "lldb/Symbol/SymbolContext.h" 25254721Semaste#include "lldb/Target/Target.h" 26254721Semaste#include "lldb/lldb-private-log.h" 27254721Semaste 28254721Semasteusing namespace lldb_private; 29254721Semaste 30254721Semaste//---------------------------------------------------------------------- 31254721Semaste// BreakpointResolver: 32254721Semaste//---------------------------------------------------------------------- 33254721SemasteBreakpointResolver::BreakpointResolver (Breakpoint *bkpt, const unsigned char resolverTy) : 34254721Semaste m_breakpoint (bkpt), 35254721Semaste SubclassID (resolverTy) 36254721Semaste{ 37254721Semaste} 38254721Semaste 39254721SemasteBreakpointResolver::~BreakpointResolver () 40254721Semaste{ 41254721Semaste 42254721Semaste} 43254721Semaste 44254721Semastevoid 45254721SemasteBreakpointResolver::SetBreakpoint (Breakpoint *bkpt) 46254721Semaste{ 47254721Semaste m_breakpoint = bkpt; 48254721Semaste} 49254721Semaste 50254721Semastevoid 51254721SemasteBreakpointResolver::ResolveBreakpointInModules (SearchFilter &filter, ModuleList &modules) 52254721Semaste{ 53254721Semaste filter.SearchInModuleList(*this, modules); 54254721Semaste} 55254721Semaste 56254721Semastevoid 57254721SemasteBreakpointResolver::ResolveBreakpoint (SearchFilter &filter) 58254721Semaste{ 59254721Semaste filter.Search (*this); 60254721Semaste} 61254721Semaste 62