aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Breakpoint/StoppointLocation.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/Breakpoint/StoppointLocation.cpp')
-rw-r--r--lldb/source/Breakpoint/StoppointLocation.cpp38
1 files changed, 12 insertions, 26 deletions
diff --git a/lldb/source/Breakpoint/StoppointLocation.cpp b/lldb/source/Breakpoint/StoppointLocation.cpp
index 35e5979..d624ddb 100644
--- a/lldb/source/Breakpoint/StoppointLocation.cpp
+++ b/lldb/source/Breakpoint/StoppointLocation.cpp
@@ -20,36 +20,22 @@ using namespace lldb_private;
//----------------------------------------------------------------------
// StoppointLocation constructor
//----------------------------------------------------------------------
-StoppointLocation::StoppointLocation (break_id_t bid, addr_t addr, bool hardware) :
- m_loc_id(bid),
- m_addr(addr),
- m_hardware(hardware),
- m_hardware_index(LLDB_INVALID_INDEX32),
- m_byte_size(0),
- m_hit_count(0)
-{
-}
+StoppointLocation::StoppointLocation(break_id_t bid, addr_t addr, bool hardware)
+ : m_loc_id(bid), m_addr(addr), m_hardware(hardware),
+ m_hardware_index(LLDB_INVALID_INDEX32), m_byte_size(0), m_hit_count(0) {}
-StoppointLocation::StoppointLocation (break_id_t bid, addr_t addr, uint32_t byte_size, bool hardware) :
- m_loc_id(bid),
- m_addr(addr),
- m_hardware(hardware),
- m_hardware_index(LLDB_INVALID_INDEX32),
- m_byte_size(byte_size),
- m_hit_count(0)
-{
-}
+StoppointLocation::StoppointLocation(break_id_t bid, addr_t addr,
+ uint32_t byte_size, bool hardware)
+ : m_loc_id(bid), m_addr(addr), m_hardware(hardware),
+ m_hardware_index(LLDB_INVALID_INDEX32), m_byte_size(byte_size),
+ m_hit_count(0) {}
//----------------------------------------------------------------------
// Destructor
//----------------------------------------------------------------------
-StoppointLocation::~StoppointLocation()
-{
-}
+StoppointLocation::~StoppointLocation() {}
-void
-StoppointLocation::DecrementHitCount ()
-{
- assert (m_hit_count > 0);
- --m_hit_count;
+void StoppointLocation::DecrementHitCount() {
+ assert(m_hit_count > 0);
+ --m_hit_count;
}