diff options
Diffstat (limited to 'src/common/break_points.h')
| -rw-r--r-- | src/common/break_points.h | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/src/common/break_points.h b/src/common/break_points.h index 46df34665..da14ca7f3 100644 --- a/src/common/break_points.h +++ b/src/common/break_points.h | |||
| @@ -14,32 +14,33 @@ class DebugInterface; | |||
| 14 | 14 | ||
| 15 | struct TBreakPoint | 15 | struct TBreakPoint |
| 16 | { | 16 | { |
| 17 | u32 iAddress; | 17 | u32 iAddress; |
| 18 | bool bOn; | 18 | bool bOn; |
| 19 | bool bTemporary; | 19 | bool bTemporary; |
| 20 | }; | 20 | }; |
| 21 | 21 | ||
| 22 | struct TMemCheck | 22 | struct TMemCheck |
| 23 | { | 23 | { |
| 24 | TMemCheck() { | 24 | TMemCheck(): |
| 25 | numHits = 0; | 25 | StartAddress(0), EndAddress(0), |
| 26 | StartAddress = EndAddress = 0; | 26 | bRange(false), OnRead(false), OnWrite(false), |
| 27 | bRange = OnRead = OnWrite = Log = Break = false; | 27 | Log(false), Break(false), numHits(0) |
| 28 | } | 28 | { } |
| 29 | u32 StartAddress; | ||
| 30 | u32 EndAddress; | ||
| 31 | 29 | ||
| 32 | bool bRange; | 30 | u32 StartAddress; |
| 31 | u32 EndAddress; | ||
| 33 | 32 | ||
| 34 | bool OnRead; | 33 | bool bRange; |
| 35 | bool OnWrite; | ||
| 36 | 34 | ||
| 37 | bool Log; | 35 | bool OnRead; |
| 38 | bool Break; | 36 | bool OnWrite; |
| 39 | 37 | ||
| 40 | u32 numHits; | 38 | bool Log; |
| 39 | bool Break; | ||
| 41 | 40 | ||
| 42 | void Action(DebugInterface *dbg_interface, u32 _iValue, u32 addr, | 41 | u32 numHits; |
| 42 | |||
| 43 | void Action(DebugInterface *dbg_interface, u32 iValue, u32 addr, | ||
| 43 | bool write, int size, u32 pc); | 44 | bool write, int size, u32 pc); |
| 44 | }; | 45 | }; |
| 45 | 46 | ||
| @@ -56,22 +57,22 @@ public: | |||
| 56 | void AddFromStrings(const TBreakPointsStr& bps); | 57 | void AddFromStrings(const TBreakPointsStr& bps); |
| 57 | 58 | ||
| 58 | // is address breakpoint | 59 | // is address breakpoint |
| 59 | bool IsAddressBreakPoint(u32 _iAddress); | 60 | bool IsAddressBreakPoint(u32 iAddress); |
| 60 | bool IsTempBreakPoint(u32 _iAddress); | 61 | bool IsTempBreakPoint(u32 iAddress); |
| 61 | 62 | ||
| 62 | // Add BreakPoint | 63 | // Add BreakPoint |
| 63 | void Add(u32 em_address, bool temp=false); | 64 | void Add(u32 em_address, bool temp=false); |
| 64 | void Add(const TBreakPoint& bp); | 65 | void Add(const TBreakPoint& bp); |
| 65 | 66 | ||
| 66 | // Remove Breakpoint | 67 | // Remove Breakpoint |
| 67 | void Remove(u32 _iAddress); | 68 | void Remove(u32 iAddress); |
| 68 | void Clear(); | 69 | void Clear(); |
| 69 | 70 | ||
| 70 | void DeleteByAddress(u32 _Address); | 71 | void DeleteByAddress(u32 Address); |
| 71 | 72 | ||
| 72 | private: | 73 | private: |
| 73 | TBreakPoints m_BreakPoints; | 74 | TBreakPoints m_BreakPoints; |
| 74 | u32 m_iBreakOnCount; | 75 | u32 m_iBreakOnCount; |
| 75 | }; | 76 | }; |
| 76 | 77 | ||
| 77 | 78 | ||
| @@ -89,7 +90,7 @@ public: | |||
| 89 | TMemChecksStr GetStrings() const; | 90 | TMemChecksStr GetStrings() const; |
| 90 | void AddFromStrings(const TMemChecksStr& mcs); | 91 | void AddFromStrings(const TMemChecksStr& mcs); |
| 91 | 92 | ||
| 92 | void Add(const TMemCheck& _rMemoryCheck); | 93 | void Add(const TMemCheck& rMemoryCheck); |
| 93 | 94 | ||
| 94 | // memory breakpoint | 95 | // memory breakpoint |
| 95 | TMemCheck *GetMemCheck(u32 address); | 96 | TMemCheck *GetMemCheck(u32 address); |
| @@ -99,4 +100,3 @@ public: | |||
| 99 | }; | 100 | }; |
| 100 | 101 | ||
| 101 | #endif | 102 | #endif |
| 102 | |||