aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/common/break_points.h
diff options
context:
space:
mode:
authorGravatar archshift <admin@archshift.com>2014-08-12 03:44:12 -0700
committerGravatar archshift <admin@archshift.com>2014-08-12 03:48:11 -0700
commite3efc613fd84d62bdc370903c8bfef9743a9e593 (patch)
treee970bbb69333c0057e23c1de355e3cdeefb5a073 /src/common/break_points.h
parent5a7c3ad1945c2829d03642b4526b9a066c73f06c (diff)
break_points: cleaned up, added `find_if`s
Diffstat (limited to 'src/common/break_points.h')
-rw-r--r--src/common/break_points.h48
1 files changed, 24 insertions, 24 deletions
diff --git a/src/common/break_points.h b/src/common/break_points.h
index 46df3466..da14ca7f 100644
--- a/src/common/break_points.h
+++ b/src/common/break_points.h
@@ -14,32 +14,33 @@ class DebugInterface;
struct TBreakPoint
{
- u32 iAddress;
- bool bOn;
- bool bTemporary;
+ u32 iAddress;
+ bool bOn;
+ bool bTemporary;
};
struct TMemCheck
{
- TMemCheck() {
- numHits = 0;
- StartAddress = EndAddress = 0;
- bRange = OnRead = OnWrite = Log = Break = false;
- }
- u32 StartAddress;
- u32 EndAddress;
+ TMemCheck():
+ StartAddress(0), EndAddress(0),
+ bRange(false), OnRead(false), OnWrite(false),
+ Log(false), Break(false), numHits(0)
+ { }
- bool bRange;
+ u32 StartAddress;
+ u32 EndAddress;
- bool OnRead;
- bool OnWrite;
+ bool bRange;
- bool Log;
- bool Break;
+ bool OnRead;
+ bool OnWrite;
- u32 numHits;
+ bool Log;
+ bool Break;
- void Action(DebugInterface *dbg_interface, u32 _iValue, u32 addr,
+ u32 numHits;
+
+ void Action(DebugInterface *dbg_interface, u32 iValue, u32 addr,
bool write, int size, u32 pc);
};
@@ -56,22 +57,22 @@ public:
void AddFromStrings(const TBreakPointsStr& bps);
// is address breakpoint
- bool IsAddressBreakPoint(u32 _iAddress);
- bool IsTempBreakPoint(u32 _iAddress);
+ bool IsAddressBreakPoint(u32 iAddress);
+ bool IsTempBreakPoint(u32 iAddress);
// Add BreakPoint
void Add(u32 em_address, bool temp=false);
void Add(const TBreakPoint& bp);
// Remove Breakpoint
- void Remove(u32 _iAddress);
+ void Remove(u32 iAddress);
void Clear();
- void DeleteByAddress(u32 _Address);
+ void DeleteByAddress(u32 Address);
private:
TBreakPoints m_BreakPoints;
- u32 m_iBreakOnCount;
+ u32 m_iBreakOnCount;
};
@@ -89,7 +90,7 @@ public:
TMemChecksStr GetStrings() const;
void AddFromStrings(const TMemChecksStr& mcs);
- void Add(const TMemCheck& _rMemoryCheck);
+ void Add(const TMemCheck& rMemoryCheck);
// memory breakpoint
TMemCheck *GetMemCheck(u32 address);
@@ -99,4 +100,3 @@ public:
};
#endif
-