diff options
Diffstat (limited to 'src/common/break_points.h')
| -rw-r--r-- | src/common/break_points.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/common/break_points.h b/src/common/break_points.h index b0629df37..1a5b7d296 100644 --- a/src/common/break_points.h +++ b/src/common/break_points.h | |||
| @@ -4,28 +4,28 @@ | |||
| 4 | 4 | ||
| 5 | #pragma once | 5 | #pragma once |
| 6 | 6 | ||
| 7 | #include <vector> | ||
| 8 | #include <string> | 7 | #include <string> |
| 8 | #include <vector> | ||
| 9 | 9 | ||
| 10 | #include "common/common_types.h" | 10 | #include "common/common_types.h" |
| 11 | 11 | ||
| 12 | class DebugInterface; | 12 | class DebugInterface; |
| 13 | 13 | ||
| 14 | struct TBreakPoint | 14 | struct TBreakPoint { |
| 15 | { | 15 | u32 iAddress; |
| 16 | u32 iAddress; | ||
| 17 | bool bOn; | 16 | bool bOn; |
| 18 | bool bTemporary; | 17 | bool bTemporary; |
| 19 | }; | 18 | }; |
| 20 | 19 | ||
| 21 | // Code breakpoints. | 20 | // Code breakpoints. |
| 22 | class BreakPoints | 21 | class BreakPoints { |
| 23 | { | ||
| 24 | public: | 22 | public: |
| 25 | typedef std::vector<TBreakPoint> TBreakPoints; | 23 | typedef std::vector<TBreakPoint> TBreakPoints; |
| 26 | typedef std::vector<std::string> TBreakPointsStr; | 24 | typedef std::vector<std::string> TBreakPointsStr; |
| 27 | 25 | ||
| 28 | const TBreakPoints& GetBreakPoints() { return m_BreakPoints; } | 26 | const TBreakPoints& GetBreakPoints() { |
| 27 | return m_BreakPoints; | ||
| 28 | } | ||
| 29 | 29 | ||
| 30 | TBreakPointsStr GetStrings() const; | 30 | TBreakPointsStr GetStrings() const; |
| 31 | void AddFromStrings(const TBreakPointsStr& bps); | 31 | void AddFromStrings(const TBreakPointsStr& bps); |
| @@ -35,7 +35,7 @@ public: | |||
| 35 | bool IsTempBreakPoint(u32 iAddress) const; | 35 | bool IsTempBreakPoint(u32 iAddress) const; |
| 36 | 36 | ||
| 37 | // Add BreakPoint | 37 | // Add BreakPoint |
| 38 | void Add(u32 em_address, bool temp=false); | 38 | void Add(u32 em_address, bool temp = false); |
| 39 | void Add(const TBreakPoint& bp); | 39 | void Add(const TBreakPoint& bp); |
| 40 | 40 | ||
| 41 | // Remove Breakpoint | 41 | // Remove Breakpoint |
| @@ -46,5 +46,5 @@ public: | |||
| 46 | 46 | ||
| 47 | private: | 47 | private: |
| 48 | TBreakPoints m_BreakPoints; | 48 | TBreakPoints m_BreakPoints; |
| 49 | u32 m_iBreakOnCount; | 49 | u32 m_iBreakOnCount; |
| 50 | }; | 50 | }; |