summaryrefslogtreecommitdiff
path: root/src/debug.cc
diff options
context:
space:
mode:
authorMengchi Zhang <[email protected]>2019-07-16 10:36:42 -0400
committerGitHub <[email protected]>2019-07-16 10:36:42 -0400
commitbf198b13541a427cba9bef22799955aa08ab050a (patch)
tree4af15f4e22cb0c55450e26cb97110534148c8c60 /src/debug.cc
parent89e913f7b28e342b9023a01105cb441cfafbee8b (diff)
parente1fa1a3cc7c509417064a8e4cdab71e3f7feb881 (diff)
Merge pull request #25 from echoedit/dev
Dev
Diffstat (limited to 'src/debug.cc')
-rw-r--r--src/debug.cc23
1 files changed, 1 insertions, 22 deletions
diff --git a/src/debug.cc b/src/debug.cc
index ae15760..c00ff9e 100644
--- a/src/debug.cc
+++ b/src/debug.cc
@@ -36,28 +36,7 @@
#include <stdio.h>
#include <string.h>
-class watchpoint_event {
-public:
- watchpoint_event()
- {
- m_thread=NULL;
- m_inst=NULL;
- }
- watchpoint_event(const ptx_thread_info *thd, const ptx_instruction *pI)
- {
- m_thread=thd;
- m_inst = pI;
- }
- const ptx_thread_info *thread() const { return m_thread; }
- const ptx_instruction *inst() const { return m_inst; }
-private:
- const ptx_thread_info *m_thread;
- const ptx_instruction *m_inst;
-};
-
-std::map<unsigned,watchpoint_event> g_watchpoint_hits;
-
-void hit_watchpoint( unsigned watchpoint_num, ptx_thread_info *thd, const ptx_instruction *pI )
+void gpgpu_sim::hit_watchpoint( unsigned watchpoint_num, ptx_thread_info *thd, const ptx_instruction *pI )
{
g_watchpoint_hits[watchpoint_num]=watchpoint_event(thd,pI);
}