diff options
Diffstat (limited to 'src/common/break_points.h')
| -rw-r--r-- | src/common/break_points.h | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/src/common/break_points.h b/src/common/break_points.h index f0a55e7b1..b0629df37 100644 --- a/src/common/break_points.h +++ b/src/common/break_points.h | |||
| @@ -18,31 +18,6 @@ struct TBreakPoint | |||
| 18 | bool bTemporary; | 18 | bool bTemporary; |
| 19 | }; | 19 | }; |
| 20 | 20 | ||
| 21 | struct TMemCheck | ||
| 22 | { | ||
| 23 | TMemCheck(): | ||
| 24 | StartAddress(0), EndAddress(0), | ||
| 25 | bRange(false), OnRead(false), OnWrite(false), | ||
| 26 | Log(false), Break(false), numHits(0) | ||
| 27 | { } | ||
| 28 | |||
| 29 | u32 StartAddress; | ||
| 30 | u32 EndAddress; | ||
| 31 | |||
| 32 | bool bRange; | ||
| 33 | |||
| 34 | bool OnRead; | ||
| 35 | bool OnWrite; | ||
| 36 | |||
| 37 | bool Log; | ||
| 38 | bool Break; | ||
| 39 | |||
| 40 | u32 numHits; | ||
| 41 | |||
| 42 | void Action(DebugInterface *dbg_interface, u32 iValue, u32 addr, | ||
| 43 | bool write, int size, u32 pc); | ||
| 44 | }; | ||
| 45 | |||
| 46 | // Code breakpoints. | 21 | // Code breakpoints. |
| 47 | class BreakPoints | 22 | class BreakPoints |
| 48 | { | 23 | { |
| @@ -73,27 +48,3 @@ private: | |||
| 73 | TBreakPoints m_BreakPoints; | 48 | TBreakPoints m_BreakPoints; |
| 74 | u32 m_iBreakOnCount; | 49 | u32 m_iBreakOnCount; |
| 75 | }; | 50 | }; |
| 76 | |||
| 77 | |||
| 78 | // Memory breakpoints | ||
| 79 | class MemChecks | ||
| 80 | { | ||
| 81 | public: | ||
| 82 | typedef std::vector<TMemCheck> TMemChecks; | ||
| 83 | typedef std::vector<std::string> TMemChecksStr; | ||
| 84 | |||
| 85 | TMemChecks m_MemChecks; | ||
| 86 | |||
| 87 | const TMemChecks& GetMemChecks() { return m_MemChecks; } | ||
| 88 | |||
| 89 | TMemChecksStr GetStrings() const; | ||
| 90 | void AddFromStrings(const TMemChecksStr& mcs); | ||
| 91 | |||
| 92 | void Add(const TMemCheck& rMemoryCheck); | ||
| 93 | |||
| 94 | // memory breakpoint | ||
| 95 | TMemCheck *GetMemCheck(u32 address); | ||
| 96 | void Remove(u32 _Address); | ||
| 97 | |||
| 98 | void Clear() { m_MemChecks.clear(); }; | ||
| 99 | }; | ||