summaryrefslogtreecommitdiff
path: root/src/common/break_points.h
diff options
context:
space:
mode:
authorGravatar Lioncash2015-09-11 08:04:40 -0400
committerGravatar Lioncash2015-09-11 08:12:08 -0400
commit5dc9950772c6d23a5798a4a0366ac767b489c7ad (patch)
tree791c5bc89014f5df00ef2c827672d3026f9e8cf3 /src/common/break_points.h
parentMerge pull request #1141 from lioncash/hdr (diff)
downloadyuzu-5dc9950772c6d23a5798a4a0366ac767b489c7ad.tar.gz
yuzu-5dc9950772c6d23a5798a4a0366ac767b489c7ad.tar.xz
yuzu-5dc9950772c6d23a5798a4a0366ac767b489c7ad.zip
common: Get rid of debug_interface.h
This is technically unused. Also removes TMemChecks because it relies on this. Whenever memory breakpoints are implemented for real, it should be designed to match the codebase debugging mechanisms.
Diffstat (limited to 'src/common/break_points.h')
-rw-r--r--src/common/break_points.h49
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
21struct 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.
47class BreakPoints 22class 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
79class MemChecks
80{
81public:
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};