StoppointLocation.cpp revision 288943
1//===-- StoppointLocation.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/StoppointLocation.h" 11 12// C Includes 13// C++ Includes 14// Other libraries and framework includes 15// Project includes 16 17using namespace lldb; 18using namespace lldb_private; 19 20//---------------------------------------------------------------------- 21// StoppointLocation constructor 22//---------------------------------------------------------------------- 23StoppointLocation::StoppointLocation (break_id_t bid, addr_t addr, bool hardware) : 24 m_loc_id(bid), 25 m_addr(addr), 26 m_hardware(hardware), 27 m_hardware_index(LLDB_INVALID_INDEX32), 28 m_byte_size(0), 29 m_hit_count(0) 30{ 31} 32 33StoppointLocation::StoppointLocation (break_id_t bid, addr_t addr, uint32_t byte_size, bool hardware) : 34 m_loc_id(bid), 35 m_addr(addr), 36 m_hardware(hardware), 37 m_hardware_index(LLDB_INVALID_INDEX32), 38 m_byte_size(byte_size), 39 m_hit_count(0) 40{ 41} 42 43//---------------------------------------------------------------------- 44// Destructor 45//---------------------------------------------------------------------- 46StoppointLocation::~StoppointLocation() 47{ 48} 49 50void 51StoppointLocation::DecrementHitCount () 52{ 53 assert (m_hit_count > 0); 54 --m_hit_count; 55} 56