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