Deleted Added
full compact
StoppointLocation.h (254729) StoppointLocation.h (258054)
1//===-- StoppointLocation.h -------------------------------------*- 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//===----------------------------------------------------------------------===//

--- 58 unchanged lines hidden (view full) ---

67 GetHitCount () const
68 {
69 return m_hit_count;
70 }
71
72 uint32_t
73 GetHardwareIndex () const
74 {
1//===-- StoppointLocation.h -------------------------------------*- 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//===----------------------------------------------------------------------===//

--- 58 unchanged lines hidden (view full) ---

67 GetHitCount () const
68 {
69 return m_hit_count;
70 }
71
72 uint32_t
73 GetHardwareIndex () const
74 {
75 return m_hw_index;
75 return m_hardware_index;
76 }
77
78
79 bool
76 }
77
78
79 bool
80 HardwarePreferred () const
80 HardwareRequired () const
81 {
81 {
82 return m_hw_preferred;
82 return m_hardware;
83 }
84
85 virtual bool
86 IsHardware () const
87 {
83 }
84
85 virtual bool
86 IsHardware () const
87 {
88 return m_hw_index != LLDB_INVALID_INDEX32;
88 return m_hardware_index != LLDB_INVALID_INDEX32;
89 }
90
91
92 virtual bool
93 ShouldStop (StoppointCallbackContext *context)
94 {
95 return true;
96 }
97
98 virtual void
99 Dump (Stream *stream) const
100 {
101 }
102
103 void
104 SetHardwareIndex (uint32_t index)
105 {
89 }
90
91
92 virtual bool
93 ShouldStop (StoppointCallbackContext *context)
94 {
95 return true;
96 }
97
98 virtual void
99 Dump (Stream *stream) const
100 {
101 }
102
103 void
104 SetHardwareIndex (uint32_t index)
105 {
106 m_hw_index = index;
106 m_hardware_index = index;
107 }
108
109
110 lldb::break_id_t
111 GetID () const
112 {
113 return m_loc_id;
114 }
115
116protected:
117 //------------------------------------------------------------------
118 // Classes that inherit from StoppointLocation can see and modify these
119 //------------------------------------------------------------------
120 lldb::break_id_t m_loc_id; // Stoppoint location ID
121 lldb::addr_t m_addr; // The load address of this stop point. The base Stoppoint doesn't
122 // store a full Address since that's not needed for the breakpoint sites.
107 }
108
109
110 lldb::break_id_t
111 GetID () const
112 {
113 return m_loc_id;
114 }
115
116protected:
117 //------------------------------------------------------------------
118 // Classes that inherit from StoppointLocation can see and modify these
119 //------------------------------------------------------------------
120 lldb::break_id_t m_loc_id; // Stoppoint location ID
121 lldb::addr_t m_addr; // The load address of this stop point. The base Stoppoint doesn't
122 // store a full Address since that's not needed for the breakpoint sites.
123 bool m_hw_preferred; // 1 if this point has been requested to be set using hardware (which may fail due to lack of resources)
124 uint32_t m_hw_index; // The hardware resource index for this breakpoint/watchpoint
123 bool m_hardware; // True if this point has been is required to use hardware (which may fail due to lack of resources)
124 uint32_t m_hardware_index; // The hardware resource index for this breakpoint/watchpoint
125 uint32_t m_byte_size; // The size in bytes of stop location. e.g. the length of the trap opcode for
126 // software breakpoints, or the optional length in bytes for
127 // hardware breakpoints, or the length of the watchpoint.
128 uint32_t m_hit_count; // Number of times this breakpoint/watchpoint has been hit
129
130 // If you override this, be sure to call the base class to increment the internal counter.
131 void
132 IncrementHitCount ()

--- 15 unchanged lines hidden ---
125 uint32_t m_byte_size; // The size in bytes of stop location. e.g. the length of the trap opcode for
126 // software breakpoints, or the optional length in bytes for
127 // hardware breakpoints, or the length of the watchpoint.
128 uint32_t m_hit_count; // Number of times this breakpoint/watchpoint has been hit
129
130 // If you override this, be sure to call the base class to increment the internal counter.
131 void
132 IncrementHitCount ()

--- 15 unchanged lines hidden ---